code: def test_random_state_int(self):
      np.random.seed(42)
      np_rv = np.random.random_sample()
      random.seed(42)
      py_rv = random.random()
  
      np.random.seed(42)
      seed = 1
      rval = self.instantiate_np_random_state(seed)
      rval_expected = np.random.RandomState(seed).rand()
      assert rval, rval_expected
      # test that global seed wasn't changed in function
      assert np_rv == np.random.random_sample()
  
      random.seed(42)
      rval = self.instantiate_py_random_state(seed)
      rval_expected = random.Random(seed).random()
      assert rval, rval_expected
      # test that global seed wasn't changed in function
      assert py_rv == random.random()
  
imports: import os
  import pathlib
  import random
  import tempfile
  import pytest
  import networkx
  from networkx.utils.decorators import argmap, not_implemented_for, np_random_state, open_file, py_random_state
  from networkx.utils.misc import PythonRandomInterface
label_desc: Use image node_id 6 for calling the TestRandomState obj's underlying member method code with example usage: obj.test_random_state_int() without return types