code: def test_serial_random_state_field(rs):
      res = deserialize(*serialize(ObjWithRandomStateField(rs)))
      if rs is None:
          assert res.random_state is None
      else:
          original_state = rs.get_state()
          new_state = res.random_state.get_state()
          assert original_state[0] == new_state[0]
          np.testing.assert_array_equal(original_state[1], new_state[1])
  
file_path: mars/mars/tensor/random/tests/test_random.py
imports: import numpy
  import pytest
  from ....core import tile
  from ....serialization import serialize, deserialize
  from ....serialization.serializables import Serializable
  from ...datasource import tensor
  from ..None import beta, rand, choice, multivariate_normal, randint, randn, permutation, TensorPermutation, shuffle, RandomState
  from ..core import RandomStateField
label_desc: Use image node_id 1 for calling a global function with example usage: test_serial_random_state_field(rs) without return types