code: def test_range_scale(self, p):
      scaler = ScaleIntensity(minv=1.0, maxv=2.0)
      im = p(self.imt)
      result = scaler(im)
      mina = self.imt.min()
      maxa = self.imt.max()
      norm = (self.imt - mina) / (maxa - mina)
      expected = p((norm * (2.0 - 1.0)) + 1.0)
      assert_allclose(
          result, expected, type_test="tensor", rtol=1e-7, atol=0
      )
  
file_path: MONAI/tests/test_scale_intensity.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from parameterized import parameterized
  from monai.transforms import ScaleIntensity
  from monai.transforms.utils import rescale_array
  from tests.utils import TEST_NDARRAYS, NumpyImageTestCase2D, assert_allclose
label_desc: Use image node_id 1 for calling the TestScaleIntensity obj's underlying member method code with example usage: obj.test_range_scale(p) without return types