code: def _get_state(seed):  # type: ignore
      if seed is None or np.isnan(seed):  # type: ignore
          state = np.random.RandomState()
      else:
          state = np.random.RandomState(seed=int(seed))  # type: ignore
      return state
  
file_path: onnx/onnx/reference/ops/_op_common_random.py
imports: import numpy
  from onnx.helper import tensor_dtype_to_np_dtype
  from onnx.reference.op_run import OpRun
label_desc: Use image node_id 4 for calling the _CommonRandom obj's underlying member method code with example usage: obj._get_state(seed) and returns: state