class_docstr: SampleTest
      
code: def setUp(self):
      config_path = os.path.join(
          os.path.abspath(os.path.dirname(__file__)),
          "test_redis_graph_conf.json",
      )
      with open(config_path) as inf:
          config = json.load(inf)
      redis_configs = [
          config["redis"],
      ]
      self.graph = RedisGraph(
          "reddit-graph", redis_configs, num_parts=config["num_parts"]
      )
  
file_path: PGL/legacy/pgl/tests/test_sample.py
imports: import unittest
  import os
  import json
  import numpy
  from pgl.redis_graph import RedisGraph
  from pgl.sample import graphsage_sample
  from pgl.sample import node2vec_sample
label_desc: Use image node_id 1 for calling the SampleTest obj's underlying member method code with example usage: obj.setUp() without return types