code: def test_channel_wise(self):
      for p in TEST_NDARRAYS:
          image = p(
              np.stack((np.asarray([1.0, 2.0]), np.asarray([1.0, 1.0])))
          )  # std: 0.5, 0
          factor = np.random.rand()
          std_shifter = StdShiftIntensity(
              factor=factor, channel_wise=True
          )
          result = std_shifter(image)
          expected = p(
              np.stack(
                  (
                      np.asarray([1 + 0.5 * factor, 2 + 0.5 * factor]),
                      np.asarray([1, 1]),
                  )
              ).astype(np.float32)
          )
          assert_allclose(
              result, expected, atol=0, rtol=1e-5, type_test=False
          )
  
file_path: MONAI/tests/test_std_shift_intensity.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from monai.transforms import ShiftIntensity, StdShiftIntensity
  from monai.utils import dtype_numpy_to_torch
  from tests.utils import TEST_NDARRAYS, NumpyImageTestCase2D, assert_allclose
label_desc: Use image node_id 4 for calling the TestStdShiftIntensity obj's underlying member method code with example usage: obj.test_channel_wise() without return types