code: def test_resize_bbox(self):
      # keep_ratio = True
      dummy_result = dict(
          img_shape=(10, 20),
          gt_bboxes=np.array([[0, 0, 1, 1]], dtype=np.float32),
      )
      resize = Resize(scale=(40, 30))
      result = resize(dummy_result)
      self.assertEqual(result["gt_bboxes"].dtype, np.float32)
  
imports: import copy
  import unittest
  import unittest.mock
  import numpy
  from mmocr.datasets.transforms import FixInvalidPolygon, RandomCrop, RandomRotate, RemoveIgnored, Resize
  from mmocr.utils import poly2shapely
label_desc: Use image node_id 2 for calling the TestResize obj's underlying member method code with example usage: obj.test_resize_bbox() without return types