parameters: (node, ctx)
return_statement: return node
docstring: Apply transformations from PyToTF to match tf.function tracing.
docstring_summary: Apply transformations from PyToTF to match tf.function tracing.
docstring_tokens: Apply transformations from PyToTF to match tf . function tracing .
function: def _apply_py_to_tf_passes(node, ctx):
    """Apply transformations from PyToTF to match tf.function tracing."""
    # TODO(fengliuai): we don't know which passes are required, thus we evaluate
    # each one when the corresponding node is handled.
    # copied from PyToTF.transform_ast
    node = return_statements.transform(node, ctx, False)
    node = control_flow.transform(node, ctx)
    return node
function_tokens: def _apply_py_to_tf_passes ( node , ctx ) : # TODO(fengliuai): we don't know which passes are required, thus we evaluate # each one when the corresponding node is handled. # copied from PyToTF.transform_ast node = return_statements . transform ( node , ctx , False ) node = control_flow . transform ( node , ctx ) return node