code: def test_value(self):
      key = "img"
      for p in TEST_NDARRAYS:
          scaler = RandScaleIntensityd(
              keys=[key], factors=0.5, prob=1.0
          )
          scaler.set_random_state(seed=0)
          result = scaler({key: p(self.imt)})
          np.random.seed(0)
          # simulate the randomize function of transform
          np.random.random()
          expected = (
              self.imt * (1 + np.random.uniform(low=-0.5, high=0.5))
          ).astype(np.float32)
          assert_allclose(result[key], p(expected), type_test="tensor")
  
file_path: MONAI/tests/test_rand_scale_intensityd.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from monai.transforms import RandScaleIntensityd
  from tests.utils import TEST_NDARRAYS, NumpyImageTestCase2D, assert_allclose
label_desc: Use image node_id 1 for calling the TestRandScaleIntensityd obj's underlying member method code with example usage: obj.test_value() without return types