code: def test_basic_generator(self):
      with self.assertRaisesRegex(NotImplementedError, "generators"):
          tf.function(basic_generator)()
  
file_path: tensorflow-upstream/tensorflow/python/autograph/tests/generator_test.py
imports: import tensorflow
  from tensorflow.python.autograph.tests import reference_test_base
label_desc: Use image node_id 1 for calling the LoopControlFlowTest obj's underlying member method code with example usage: obj.test_basic_generator() without return types