code: def test_shift_masks(self):
      masks = np.zeros((3, 30, 30), dtype=bool)
      shift_x = 10
      shift_y = 20
      full_shape = [720, 1280]
      shifted_masks = shift_masks(
          masks=masks, offset=[shift_x, shift_y], full_shape=full_shape
      )
      self.assertEqual(shifted_masks.shape, (3, 720, 1280))
      self.assertEqual(type(shifted_masks), np.ndarray)
  
file_path: sahi/tests/test_slicing.py
imports: import unittest
  import numpy
  from PIL import Image
  from sahi.slicing import shift_bboxes, shift_masks, slice_coco, slice_image
  from sahi.utils.coco import Coco
  from sahi.utils.cv import read_image
label_desc: Use image node_id 4 for calling the TestSlicing obj's underlying member method code with example usage: obj.test_shift_masks() without return types