code: def test_range_scale(self):
      key = "img"
      for p in TEST_NDARRAYS:
          scaler = ScaleIntensityd(keys=[key], minv=1.0, maxv=2.0)
          result = scaler({key: p(self.imt)})
          mina = np.min(self.imt)
          maxa = np.max(self.imt)
          norm = (self.imt - mina) / (maxa - mina)
          expected = (norm * (2.0 - 1.0)) + 1.0
          assert_allclose(result[key], p(expected), type_test="tensor")
  
file_path: MONAI/tests/test_scale_intensityd.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from monai.transforms import ScaleIntensityd
  from tests.utils import TEST_NDARRAYS, NumpyImageTestCase2D, assert_allclose
label_desc: Use image node_id 1 for calling the TestScaleIntensityd obj's underlying member method code with example usage: obj.test_range_scale() without return types