class_docstr: RedisGraphTest
      
docstr: test_random_seed
          
docstr_tok: ["test_random_seed"]
code: def test_random_seed(self):
      """test_random_seed"""
      np.random.seed(1)
      data1 = self.graph.sample_predecessor(range(1000), max_degree=5)
      data1 = [nid for nodes in data1 for nid in nodes]
      np.random.seed(1)
      data2 = self.graph.sample_predecessor(range(1000), max_degree=5)
      data2 = [nid for nodes in data2 for nid in nodes]
      np.random.seed(3)
      data3 = self.graph.sample_predecessor(range(1000), max_degree=5)
      data3 = [nid for nodes in data3 for nid in nodes]
  
      self.assertEqual(data1, data2)
      self.assertNotEqual(data2, data3)
  
file_path: PGL/legacy/pgl/tests/test_redis_graph.py
imports: import time
  import unittest
  import json
  import os
  import numpy
  from pgl.redis_graph import RedisGraph
label_desc: Use image node_id 2 for calling the RedisGraphTest obj's underlying member method code with example usage: obj.test_random_seed() without return types