class_docstr: Performs the conversion to A-normal form (ANF).
class_docstr_tok: ["Performs","the","conversion","to","A-normal","form","(","ANF",")","."]
code: def visit_For(self, node):
      assert not self._pending_statements
      # It's important to visit node.iter first, because any statements created
      # thereby need to live outside the body.
      self.visit(node.iter)
      node.iter = self._ensure_node_in_anf(node, "iter", node.iter)
      iter_stmts = self._consume_pending_statements()
      # This generic_visit will revisit node.iter, but that is correct because by
      # this point the node.iter link has been checked.  It may be somewhat
      # expensive if the configuration didn't call for transforming node.iter, as
      # then it may be large and will be uselessly transformed again.  This
      # behavior is what causes the documented effect that configuration callables
      # may be invoked more than once of the same links; if the code is rewritten
      # not to do that (anywhere), the docstring of `transform` should be updated.
      node = self.generic_visit(node)
      assert not self._pending_statements
      iter_stmts.append(node)
      return iter_stmts
  
imports: import collections
  import gast
  from tensorflow.python.autograph.pyct import gast_util
  from tensorflow.python.autograph.pyct import templates
  from tensorflow.python.autograph.pyct import transformer
label_desc: Use image node_id 18 for calling the AnfTransformer obj's underlying member method code with example usage: obj.visit_For(node) and returns: iter_stmts