code: def test_codegen_gens(self):
      np.random.seed(0)
      for _ in range(1000):
          node = codegen.generate_random_functiondef()
          fn = compiler.ast_to_object(node)
          self.assertIsNotNone(
              fn,
              "Generated invalid AST that could not convert to source.",
          )
  
imports: import numpy
  from tensorflow.python.autograph.pyct import compiler
  from tensorflow.python.autograph.pyct.testing import codegen
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the CodeGenTest obj's underlying member method code with example usage: obj.test_codegen_gens() without return types