code: def test_deep_copy(self):
      data = {"img": np.ones((1, 10, 11, 12))}
      num_samples = 3
      sampler = RandSpatialCropSamplesd(
          keys=["img"],
          roi_size=(3, 3, 3),
          num_samples=num_samples,
          random_center=True,
          random_size=False,
      )
      transform = Compose([DivisiblePadd(keys="img", k=5), sampler])
      samples = transform(data)
      self.assertEqual(len(samples), num_samples)
      for sample in samples:
          self.assertEqual(
              len(sample["img"].applied_operations), len(transform)
          )
  
file_path: MONAI/tests/test_rand_spatial_crop_samplesd.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from parameterized import parameterized
  from monai.data.meta_tensor import MetaTensor
  from monai.transforms import Compose, DivisiblePadd, RandSpatialCropSamplesd
  from monai.transforms.lazy.functional import apply_pending
  from tests.utils import TEST_NDARRAYS_ALL, assert_allclose
label_desc: Use image node_id 2 for calling the TestRandSpatialCropSamplesd obj's underlying member method code with example usage: obj.test_deep_copy() without return types