code: def test_call_within_randomstate(self):
      # Check that custom RandomState does not call into global state
      m = np.random.RandomState()
      res = np.array([0, 8, 7, 2, 1, 9, 4, 7, 0, 3])
      for i in range(3):
          np.random.seed(i)
          m.seed(4321)
          # If m.state is not honored, the result will change
          assert_array_equal(
              m.choice(10, size=10, p=np.ones(10) / 10.0), res
          )
  
file_path: catboost/contrib/python/numpy/py3/numpy/random/tests/test_regression.py
imports: import sys
  from numpy.testing import assert_, assert_array_equal, assert_raises
  from numpy import random
  import numpy
label_desc: Use image node_id 5 for calling the TestRegression obj's underlying member method code with example usage: obj.test_call_within_randomstate() without return types