code: def test_generate(self):
      gene = CorefGenerator(trans_methods=["RndConcat"], sub_methods=[])
      print(gene.transform_methods)
      for original_samples, trans_rst, trans_type in gene.generate(
          dataset
      ):
          self.assertEqual(len(original_samples), len(trans_rst))
      gene = CorefGenerator(
          trans_methods=["wrong_transform_method"], sub_methods=[]
      )
      self.assertRaises(ValueError, next, gene.generate(dataset))
      gene = CorefGenerator(
          trans_methods=["AddSubtree"], sub_methods=[]
      )
      self.assertRaises(ValueError, next, gene.generate(dataset))
      gene = CorefGenerator(trans_methods="OOV", sub_methods=[])
      self.assertRaises(ValueError, next, gene.generate(dataset))
      gene = CorefGenerator(
          trans_methods=["Contraction", "SwapNamedEnt"], sub_methods=[]
      )
      for original_samples, trans_rst, trans_type in gene.generate(
          dataset
      ):
          self.assertTrue(len(original_samples) >= len(trans_rst))
  
imports: import unittest
  from textflint.generation.generator.coref_generator import CorefGenerator
  from textflint.input.dataset import Dataset
  from test.data.coref_debug import CorefDebug
label_desc: Use image node_id 1 for calling the TestCorefGenerator obj's underlying member method code with example usage: obj.test_generate() without return types