code: def test_given_mode(self):
      # test with wrong mode
      self.assertRaises(ValueError, SwapEnt, "qabc")
  
      # test with OOV mode
      swap_ins_oov = SwapEnt("OOV")
      self.assertTrue(swap_ins_oov.swap_type == "OOV")
  
      # test with CrossCategory mode
      swap_ins_oov = SwapEnt("CrossCategory")
      self.assertTrue(swap_ins_oov.swap_type == "CrossCategory")
  
      # test with SwapLonger mode
      swap_ins_oov = SwapEnt("SwapLonger")
      self.assertTrue(swap_ins_oov.swap_type == "SwapLonger")
  
imports: import unittest
  from textflint.input.component.sample.ner_sample import NERSample
  from textflint.generation.transformation.NER.swap_ent import SwapEnt
label_desc: Use image node_id 2 for calling the TestSpecialSwapEnt obj's underlying member method code with example usage: obj.test_given_mode() without return types