code: def test_sheary_use_box_type(self):
      # test case when no shear vertically (level=0)
      transform = ShearY(
          prob=1.0,
          level=0,
          img_border_value=self.img_border_value,
          seg_ignore_label=self.seg_ignore_label,
      )
      results_wo_sheary = transform(
          copy.deepcopy(self.results_mask_boxtype)
      )
      check_result_same(
          self.results_mask_boxtype, results_wo_sheary, self.check_keys
      )
  
      # test shear vertically, magnitude=1
      transform = ShearY(
          prob=1.0, level=10, max_mag=45.0, reversal_prob=0.0
      )
      results_sheared = transform(
          copy.deepcopy(self.results_mask_boxtype)
      )
      results_gt = copy.deepcopy(self.results_mask_boxtype)
      img_gt = np.array(
          [[1, 6, 11, 128], [5, 10, 128, 128], [9, 128, 128, 128]],
          dtype=np.uint8,
      )
      img_gt = np.stack([img_gt, img_gt, img_gt], axis=-1)
      results_gt["img"] = img_gt
      results_gt["gt_bboxes"] = HorizontalBoxes(
          np.array([[1, 0, 2, 1]], dtype=np.float32)
      )
      results_gt["gt_bboxes_labels"] = np.array([13], dtype=np.int64)
      gt_masks = np.array(
          [[0, 1, 0, 0], [0, 1, 0, 0], [0, 0, 0, 0]], dtype=np.uint8
      )[None, :, :]
      results_gt["gt_masks"] = BitmapMasks(gt_masks, 3, 4)
      results_gt["gt_ignore_flags"] = np.array(
          np.array([1], dtype=bool)
      )
      results_gt["gt_seg_map"] = np.array(
          [
              [255, 13, 255, 255],
              [255, 13, 255, 255],
              [255, 255, 255, 255],
          ],
          dtype=self.results_mask["gt_seg_map"].dtype,
      )
      check_result_same(results_gt, results_sheared, self.check_keys)
  
imports: import copy
  import unittest
  import numpy
  from mmdet.datasets.transforms import GeomTransform, Rotate, ShearX, ShearY, TranslateX, TranslateY
  from mmdet.structures.bbox import HorizontalBoxes
  from mmdet.structures.mask import BitmapMasks, PolygonMasks
  from .utils import check_result_same, construct_toy_data
label_desc: Use image node_id 3 for calling the TestShearY obj's underlying member method code with example usage: obj.test_sheary_use_box_type() without return types