code: def testSetRandomNumberGenerator(self):
      set_random_number_generator(FakeRNG)
      graph = Graph.GRG(10, 0.2)
      self.assertEqual(graph.vs["x"], [0.1] * 10)
      self.assertEqual(graph.vs["y"], [0.1] * 10)
  
      self.assertRaises(
          AttributeError, set_random_number_generator, InvalidRNG
      )
  
file_path: python-igraph/tests/test_rng.py
imports: import random
  import unittest
  from igraph import Graph, set_random_number_generator
label_desc: Use image node_id 2 for calling the RandomNumberGeneratorTests obj's underlying member method code with example usage: obj.testSetRandomNumberGenerator() without return types