code: def test_value(self, input_param, input_im):
      for im_type in TEST_NDARRAYS_ALL:
          with self.subTest(im_type=im_type):
              cropper = self.Cropper(**input_param)
              input_data = {"img": im_type(input_im)}
              result = cropper(input_data)["img"]
              roi = [
                  (2 - i // 2, 2 + i - i // 2)
                  for i in cropper.cropper._size
              ]
              assert_allclose(
                  result,
                  input_im[
                      :, roi[0][0] : roi[0][1], roi[1][0] : roi[1][1]
                  ],
                  type_test="tensor",
              )
  
file_path: MONAI/tests/test_rand_scale_cropd.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from parameterized import parameterized
  from monai.transforms import RandScaleCropd
  from tests.croppers import CropTest
  from tests.utils import TEST_NDARRAYS_ALL, assert_allclose
label_desc: Use image node_id 2 for calling the TestRandScaleCropd obj's underlying member method code with example usage: obj.test_value(input_param, input_im) without return types