code: def test_rescale_bboxes(self):
      # mul
      rescaled_bboxes = rescale_bboxes(
          self.bboxes, self.scale, mode="mul"
      )
      self.assertTrue(
          np.allclose(
              rescaled_bboxes, np.array([[0, 0, 2, 2], [2, 2, 4, 4]])
          )
      )
      # div
      rescaled_bboxes = rescale_bboxes(
          self.bboxes, self.scale, mode="div"
      )
      self.assertTrue(
          np.allclose(
              rescaled_bboxes,
              np.array([[0, 0, 0.5, 0.5], [0.5, 0.5, 1, 1]]),
          )
      )
  
imports: import unittest
  import numpy
  import torch
  from mmocr.utils import bbox2poly, bbox_center_distance, bbox_diag_distance, bezier2polygon, is_on_same_line, rescale_bbox, rescale_bboxes, stitch_boxes_into_lines
  from mmocr.utils.bbox_utils import bbox_jitter
label_desc: Use image node_id 3 for calling the TestRescaleBbox obj's underlying member method code with example usage: obj.test_rescale_bboxes() without return types