parameters: (func, op_defs)
return_statement: return mlir_code
docstring: Parse a function and emit the TFR functions.
docstring_summary: Parse a function and emit the TFR functions.
docstring_tokens: Parse a function and emit the TFR functions .
function: def tfr_gen(func, op_defs):
    """Parse a function and emit the TFR functions."""
    mlir_code, _ = TfrGen(op_defs).transform(func, None)
    assert tfr.verify(mlir_code), 'mlir code not verified: {}'.format(mlir_code)
    return mlir_code
function_tokens: def tfr_gen ( func , op_defs ) : mlir_code , _ = TfrGen ( op_defs ) . transform ( func , None ) assert tfr . verify ( mlir_code ) , 'mlir code not verified: {}' . format ( mlir_code ) return mlir_code