code: def test_state(self):
      inst = RandTest()
      inst_r = np.random.RandomState(123)
      inst.set_random_state(state=inst_r)
      self.assertAlmostEqual(inst.R.rand(), 0.69646918)
  
file_path: MONAI/tests/test_randomizable.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from monai.transforms.transform import Randomizable
label_desc: Use image node_id 3 for calling the TestRandomizable obj's underlying member method code with example usage: obj.test_state() without return types