code: def test_transformation(self):
      trans_sample = swap_ins.transform(data_sample, n=10)
      self.assertTrue(10 == len(trans_sample))
      for sample in trans_sample:
          for i, (trans_word, ori_word) in enumerate(
              zip(sample.get_value("x"), data_sample.get_value("x"))
          ):
              self.assertTrue(
                  sample.get_value("y") == data_sample.get_value("y")
              )
              if not sample.mask[i]:
                  self.assertTrue(trans_word == ori_word)
  
imports: import unittest
  from textflint.generation.transformation.CWS.swap_name import SwapName
  from textflint.input.component.sample.cws_sample import CWSSample
label_desc: Use image node_id 1 for calling the TestSwapName obj's underlying member method code with example usage: obj.test_transformation() without return types