class_docstr: metapath_randomwalk test
      
code: def setUp(self):
      edges = {}
      # for test no successor
      edges["c2p"] = [
          (1, 4),
          (0, 5),
          (1, 9),
          (1, 8),
          (2, 8),
          (2, 5),
          (3, 6),
          (3, 7),
          (3, 4),
          (3, 8),
      ]
      edges["p2c"] = [(v, u) for u, v in edges["c2p"]]
      edges["p2a"] = [
          (4, 10),
          (4, 11),
          (4, 12),
          (4, 14),
          (4, 13),
          (6, 12),
          (6, 11),
          (6, 14),
          (7, 12),
          (7, 11),
          (8, 14),
          (9, 10),
      ]
      edges["a2p"] = [(v, u) for u, v in edges["p2a"]]
  
      # for test speed
      #  edges['c2p'] = [(0, 4), (0, 5), (1, 9), (1,8), (2,8), (2,5), (3,6), (3,7), (3,4), (3,8)]
      #  edges['p2c'] = [(v,u) for u, v in edges['c2p']]
      #  edges['p2a'] = [(4,10), (4,11), (4,12), (4,14), (5,13), (6,13), (6,11), (6,14), (7,12), (7,11), (8,14), (9,13)]
      #  edges['a2p'] = [(v,u) for u, v in edges['p2a']]
  
      self.node_types = (
          ["c" for _ in range(4)]
          + ["p" for _ in range(6)]
          + ["a" for _ in range(5)]
      )
      node_types = [(i, t) for i, t in enumerate(self.node_types)]
  
      self.graph = heter_graph.HeterGraph(
          num_nodes=len(node_types), edges=edges, node_types=node_types
      )
  
file_path: PGL/legacy/pgl/tests/test_metapath_randomwalk.py
imports: import time
  import unittest
  import json
  import os
  import numpy
  from pgl.sample import metapath_randomwalk
  from pgl.graph import Graph
  from pgl import heter_graph
label_desc: Use image node_id 1 for calling the MetapathRandomwalkTest obj's underlying member method code with example usage: obj.setUp() without return types