code: def test_transform(self):
      # test if the rescale keeps the original size
      transform = PyramidRescale()
      results = transform(copy.deepcopy(self.data_info))
      self.assertEqual(results["img"].shape, (128, 100, 3))
      # test factor = 0
      transform = PyramidRescale(factor=0, randomize_factor=False)
      results = transform(copy.deepcopy(self.data_info))
      self.assertTrue(np.all(results["img"] == self.data_info["img"]))
  
imports: import copy
  import unittest
  import numpy
  from parameterized import parameterized
  from mmocr.datasets.transforms import CropHeight, ImageContentJitter, PadToWidth, PyramidRescale, RescaleToHeight, ReversePixels, TextRecogGeneralAug
label_desc: Use image node_id 3 for calling the TestPyramidRescale obj's underlying member method code with example usage: obj.test_transform() without return types