code: def test_rescale_bbox(self):
      # mul
      rescaled_bbox = rescale_bbox(self.bbox, self.scale, mode="mul")
      self.assertTrue(
          np.allclose(rescaled_bbox, np.array([0, 0, 2, 2]))
      )
      # div
      rescaled_bbox = rescale_bbox(self.bbox, self.scale, mode="div")
      self.assertTrue(
          np.allclose(rescaled_bbox, np.array([0, 0, 0.5, 0.5]))
      )
  
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 2 for calling the TestRescaleBbox obj's underlying member method code with example usage: obj.test_rescale_bbox() without return types