code: def test_translatey_use_box_type(self):
      # test case when level=0 (without translate aug)
      transform = TranslateY(
          prob=1.0,
          level=0,
          img_border_value=self.img_border_value,
          seg_ignore_label=self.seg_ignore_label,
      )
      results_wo_translatey = transform(
          copy.deepcopy(self.results_mask_boxtype)
      )
      check_result_same(
          self.results_mask_boxtype,
          results_wo_translatey,
          self.check_keys,
      )
  
      # test translate vertically, magnitude=-1
      transform = TranslateY(
          prob=1.0,
          level=10,
          max_mag=0.4,
          reversal_prob=0.0,
          seg_ignore_label=self.seg_ignore_label,
      )
  
      results_translated = transform(
          copy.deepcopy(self.results_mask_boxtype)
      )
      img_gt = np.array(
          [[5, 6, 7, 8], [9, 10, 11, 12], [128, 128, 128, 128]]
      ).astype(np.uint8)
      img_gt = np.stack([img_gt, img_gt, img_gt], axis=-1)
      results_gt = copy.deepcopy(self.results_mask_boxtype)
      results_gt["img"] = img_gt
      results_gt["gt_bboxes"] = HorizontalBoxes(
          np.array([[1, 0, 2, 1]], dtype=np.float32)
      )
      gt_masks = np.array(
          [[0, 1, 1, 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, 13, 255],
              [255, 13, 255, 255],
              [255, 255, 255, 255],
          ]
      ).astype(self.results_mask["gt_seg_map"].dtype)
      check_result_same(results_gt, results_translated, 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 TestTranslateY obj's underlying member method code with example usage: obj.test_translatey_use_box_type() without return types