code: def test_image_scale_intensity_range(self):
      scaler = ScaleIntensityRange(
          a_min=20, a_max=108, b_min=50, b_max=80, dtype=np.uint8
      )
      for p in TEST_NDARRAYS:
          scaled = scaler(p(self.imt))
          self.assertTrue(scaled.dtype, np.uint8)
          expected = (((self.imt - 20) / 88) * 30 + 50).astype(np.uint8)
          assert_allclose(scaled, p(expected), type_test="tensor")
  
file_path: MONAI/tests/test_scale_intensity_range.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from monai.transforms import ScaleIntensityRange
  from tests.utils import TEST_NDARRAYS, NumpyImageTestCase2D, assert_allclose
label_desc: Use image node_id 1 for calling the IntensityScaleIntensityRange obj's underlying member method code with example usage: obj.test_image_scale_intensity_range() without return types