def METHOD_NAME(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))