code: def test_random_execute(setup, test_opts):
      rs = tensor.random.RandomState(0)
      arr1 = getattr(rs, test_opts.func_name)(
          *test_opts.args, **test_opts.kwargs
      )
      rs = tensor.random.RandomState(0)
      arr2 = getattr(rs, test_opts.func_name)(
          *test_opts.args, **test_opts.kwargs
      )
      assert np.array_equal(
          arr1.execute().fetch(), arr2.execute().fetch()
      )
  
file_path: mars/mars/tensor/random/tests/test_random_execution.py
imports: from collections import namedtuple
  import numpy
  import pytest
  from ....None import tensor
  from ....core import tile
  from ....lib.sparse.core import issparse
  from ...datasource import tensor
label_desc: Use image node_id 6 for calling a global function with example usage: test_random_execute(setup, test_opts) without return types