class_docstr: SampleTest
      
class_docstr_tok: ["SampleTest"]
code: def build_test_graph(self):
      num_nodes = 5
      dim = 4
      edges = [(0, 1), (1, 2), (3, 4), (1, 0), (2, 1), (4, 3)]
      nfeat = np.random.randn(num_nodes, dim)
      efeat = np.random.randn(len(edges), dim)
  
      g1 = pgl.Graph(
          edges=edges,
          num_nodes=num_nodes,
          node_feat={"nfeat": nfeat},
          edge_feat={"efeat": efeat},
      )
      return g1
  
file_path: PGL/tests/test_sample.py
imports: import os
  import unittest
  import numpy
  import paddle
  import pgl
  from pgl.sampling import graphsage_sample
  from pgl.sampling import random_walk
  from pgl.sampling import node2vec_walk
  from pgl.sampling import node2vec_walk_plus
  from testsuite import create_random_graph
label_desc: Use image node_id 2 for calling the SampleTest obj's underlying member method code with example usage: obj.build_test_graph() and returns: g1