class_docstr: GraphSaintSampleTest
docstr: test_randomwalk_sampler
code: def test_randomwalk_sampler(self):
      """test_randomwalk_sampler"""
      g = pgl.graph.Graph(
          num_nodes=8,
          edges=[
              (1, 2),
              (2, 3),
              (0, 2),
              (0, 1),
              (6, 7),
              (4, 5),
              (6, 4),
              (7, 4),
              (3, 4),
          ],
      )
      subgraph = graph_saint_random_walk_sample(g, [6, 7], 2)
      print("reindex", subgraph._from_reindex)
      print("subedges", subgraph.edges)
      assert len(subgraph.nodes) == 4
      assert len(subgraph.edges) == 4
      true_edges = np.array([[0, 1], [2, 3], [2, 0], [3, 0]])
      assert "{}".format(subgraph.edges) == "{}".format(true_edges)
  
file_path: PGL/legacy/pgl/tests/test_graph_saint_sample.py
imports: from __future__ import division
  from __future__ import absolute_import
  from __future__ import print_function
  from __future__ import unicode_literals
  import unittest
  import numpy
  import pgl
  import paddle.fluid
  from pgl.sample import graph_saint_random_walk_sample
label_desc: Use image node_id 1 for calling the GraphSaintSampleTest obj's underlying member method code with example usage: obj.test_randomwalk_sampler() without return types