class_docstr: Generate random syntactically-valid Python ASTs.
docstr: Generate a While node.
docstr_tok: ["Generate","a","While","node","."]
code: def generate_While(self):
      """Generate a While node."""
  
      test = self.generate_Compare()
      body = self.sample_node_list(
          low=1,
          high=N_CONTROLFLOW_STATEMENTS,
          generator=self.generate_statement,
      )
      orelse = []  # not generating else statements
  
      node = gast.While(test, body, orelse)
      return node
  
imports: import random
  import string
  import gast
  import numpy
  from tensorflow.python.autograph.pyct import templates
label_desc: Use image node_id 11 for calling the CodeGenerator obj's underlying member method code with example usage: obj.generate_While() and returns: node