code: def test_value(self, p):
      shifter = RandShiftIntensity(offsets=1.0, prob=1.0)
      shifter.set_random_state(seed=0)
      im = p(self.imt)
      result = shifter(im, factor=1.0)
      np.random.seed(0)
      # simulate the randomize() of transform
      np.random.random()
      expected = self.imt + np.random.uniform(low=-1.0, high=1.0)
      assert_allclose(result, expected, type_test="tensor")
  
file_path: MONAI/tests/test_rand_shift_intensity.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from parameterized import parameterized
  from monai.transforms import RandShiftIntensity
  from tests.utils import TEST_NDARRAYS, NumpyImageTestCase2D, assert_allclose
label_desc: Use image node_id 1 for calling the TestRandShiftIntensity obj's underlying member method code with example usage: obj.test_value(p) without return types