code: def test_shape(self, args, data, expected_shape):
      cropper = ReferenceBasedSpatialCropd(
          keys=args["keys"], ref_key=args["ref_key"]
      )
      res_data = cropper(data)
      self.assertTupleEqual(
          res_data[args["keys"][0]].shape[1:], expected_shape
      )
  
file_path: MONAI/tests/test_reference_based_spatial_cropd.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from parameterized import parameterized
  from monai.apps.reconstruction.transforms.dictionary import ReferenceBasedSpatialCropd
  from tests.utils import TEST_NDARRAYS
label_desc: Use image node_id 1 for calling the TestTargetBasedSpatialCropd obj's underlying member method code with example usage: obj.test_shape(args, data, expected_shape) without return types