class_docstr: Performs the conversion to A-normal form (ANF).
class_docstr_tok: ["Performs","the","conversion","to","A-normal","form","(","ANF",")","."]
code: def visit_While(self, node):
      assert not self._pending_statements
      self.visit(node.test)
      node.test = self._ensure_node_in_anf(node, "test", node.test)
      if self._pending_statements:
          msg = (
              "While with nontrivial test not supported yet "
              "(need to avoid precomputing the test)."
          )
          raise ValueError(msg)
      # If traversing node.test yielded no statements extracted, the generic visit
      # will do the right thing.
      return self.generic_visit(node)
  
imports: import collections
  import gast
  import six
  from nvidia.dali._autograph.pyct import gast_util
  from nvidia.dali._autograph.pyct import templates
  from nvidia.dali._autograph.pyct import transformer
label_desc: Use image node_id 20 for calling the AnfTransformer obj's underlying member method code with example usage: obj.visit_While(node) and returns: self