code: def test_channel_wise(self):
      for p in TEST_NDARRAYS:
          scaler = ScaleIntensity(minv=1.0, maxv=2.0, channel_wise=True)
          data = p(np.tile(self.imt, (3, 1, 1, 1)))
          result = scaler(data)
          mina = self.imt.min()
          maxa = self.imt.max()
          for i, c in enumerate(data):
              norm = (c - mina) / (maxa - mina)
              expected = p((norm * (2.0 - 1.0)) + 1.0)
              assert_allclose(
                  result[i],
                  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 5 for calling the TestScaleIntensity obj's underlying member method code with example usage: obj.test_channel_wise() without return types