code: def test_random_state_py_random(self):
      seed = 1
      rng = random.Random(seed)
      rv = self.instantiate_py_random_state(rng)
      assert rv, random.Random(seed).random()
  
      pytest.raises(ValueError, self.instantiate_np_random_state, rng)
  
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 8 for calling the TestRandomState obj's underlying member method code with example usage: obj.test_random_state_py_random() without return types