code: def test_same_result(self, im_shape, im_type):
      data = self.get_data(im_shape, im_type)
  
      t = RandKSpaceSpikeNoised(
          KEYS, prob=1.0, intensity_range=(13, 15), channel_wise=True
      )
      t.set_random_state(42)
      out1 = t(deepcopy(data))
  
      t.set_random_state(42)
      out2 = t(deepcopy(data))
  
      for k in KEYS:
          assert_allclose(
              out1[k], out2[k], atol=1e-10, type_test="tensor"
          )
  
file_path: MONAI/tests/test_rand_k_space_spike_noised.py
imports: from __future__ import annotations
  import unittest
  from copy import deepcopy
  from parameterized import parameterized
  from monai.data.synthetic import create_test_image_2d, create_test_image_3d
  from monai.transforms import RandKSpaceSpikeNoised
  from monai.utils.misc import set_determinism
  from tests.utils import TEST_NDARRAYS, assert_allclose
label_desc: Use image node_id 4 for calling the TestKSpaceSpikeNoised obj's underlying member method code with example usage: obj.test_same_result(im_shape, im_type) without return types