code: def test_generate(self):
      # test wrong trans_methods
      gene = NERCNGenerator(
          trans_methods=["wrong_transform_method"], sub_methods=[]
      )
      self.assertRaises(ValueError, next, gene.generate(dataset))
      self.assertRaises(ValueError, next, gene.generate(dataset))
  
      gene = NERCNGenerator(trans_methods="OOV", sub_methods=[])
      self.assertRaises(ValueError, next, gene.generate(dataset))
  
imports: import unittest
  from textflint.input.dataset import Dataset
  from textflint.generation.generator.nercn_generator import NERCNGenerator
label_desc: Use image node_id 1 for calling the TestSpecialEntityTyposSwap obj's underlying member method code with example usage: obj.test_generate() without return types