code: def test_transform(self):
      self.assertRaises(AssertionError, sample._transform, [], 1)
      self.assertRaises(AssertionError, sample._transform, re_data, [])
      trans_samples = sample._transform(re_data, 1)
      for trans_sample in trans_samples:
          self.assertTrue(type(trans_sample) == type(re_data))
  
imports: import unittest
  from textflint.input.component.sample.re_sample import RESample
  from textflint.generation.transformation.RE.swap_age import SwapAge
label_desc: Use image node_id 1 for calling the TestEntitySwap obj's underlying member method code with example usage: obj.test_transform() without return types