code: def test_bitmap_translate_same_size(self):
      mask_array = np.zeros((5, 10, 10), dtype=np.uint8)
      mask_array[:, 0:5, 0:5] = 1
      mask_target = np.zeros((5, 10, 10), dtype=np.uint8)
      mask_target[:, 0:5, 5:10] = 1
  
      mask = BitmapMasks(mask_array, 10, 10)
      mask = mask.translate((10, 10), 5)
      assert mask.masks.shape == (5, 10, 10)
      assert_allclose(mask_target, mask.masks)
  
file_path: mmdetection/tests/test_structures/test_mask/test_mask_structures.py
imports: from unittest import TestCase
  import numpy
  from mmengine.testing import assert_allclose
  from mmdet.structures.mask import BitmapMasks, PolygonMasks
label_desc: Use image node_id 1 for calling the TestMaskStructures obj's underlying member method code with example usage: obj.test_bitmap_translate_same_size() without return types