code: def test_pad_to_width(self):
      data_info = dict(img=np.random.random((16, 25, 3)))
      # test size and size_divisor are both set
      with self.assertRaises(AssertionError):
          PadToWidth(width=10.5)
  
      transform = PadToWidth(width=100)
      results = transform(copy.deepcopy(data_info))
      self.assertTupleEqual(results["img"].shape[:2], (16, 100))
      self.assertEqual(results["valid_ratio"], 25 / 100)
  
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 1 for calling the TestPadToWidth obj's underlying member method code with example usage: obj.test_pad_to_width() without return types