class_docstr: Wraps function bodies around autograph-specific boilerplate.
class_docstr_tok: ["Wraps","function","bodies","around","autograph-specific","boilerplate","."]
code: def visit_Lambda(self, node):
      with self.state[_Function] as fn_scope:
          node = self.generic_visit(node)
  
          # TODO(mdan): Fix the tests so that we can always add this decorator.
          if fn_scope.level > 2:
              return templates.replace_as_expression(
                  "ag__.autograph_artifact(l)", l=node
              )
  
          scope = anno.getanno(node, anno.Static.SCOPE)
          function_context_name = self.ctx.namer.new_symbol(
              "lscope", scope.referenced
          )
          fn_scope.context_name = function_context_name
          anno.setanno(
              node, "function_context_name", function_context_name
          )
  
          template = """
          ag__.with_function_scope(
              lambda function_context: body, function_context_name, options)
        """
          node.body = templates.replace_as_expression(
              template,
              options=self._function_scope_options(fn_scope).to_ast(),
              function_context=function_context_name,
              function_context_name=gast.Constant(
                  function_context_name, kind=None
              ),
              body=node.body,
          )
  
          return node
  
file_path: tensorflow/tensorflow/python/autograph/converters/functions.py
imports: import gast
  from tensorflow.python.autograph.core import converter
  from tensorflow.python.autograph.pyct import anno
  from tensorflow.python.autograph.pyct import parser
  from tensorflow.python.autograph.pyct import qual_names
  from tensorflow.python.autograph.pyct import templates
  from tensorflow.python.autograph.pyct.static_analysis import activity
  from tensorflow.python.autograph.pyct.static_analysis import annos
label_desc: Use image node_id 2 for calling the FunctionTransformer obj's underlying member method code with example usage: obj.visit_Lambda(node) and returns: node, templates