code: def test_sample_successor(self):
      print()
      nodes = [4, 5, 8]
      md = 2
      succes = self.graph.sample_successor(
          edge_type="p2a", nodes=nodes, max_degree=md, return_eids=False
      )
      self.assertIsInstance(succes, list)
      ground = [[10, 11, 12, 14, 13], [], [14]]
      for succ, g in zip(succes, ground):
          self.assertIsInstance(succ, np.ndarray)
          for i in succ:
              self.assertIn(i, g)
  
      nodes = [4]
      succes = self.graph.sample_successor(
          edge_type="p2a", nodes=nodes, max_degree=md, return_eids=False
      )
      self.assertIsInstance(succes, list)
      ground = [[10, 11, 12, 14, 13]]
      for succ, g in zip(succes, ground):
          self.assertIsInstance(succ, np.ndarray)
          for i in succ:
              self.assertIn(i, g)
  
file_path: PGL/legacy/pgl/tests/test_MmapHeterGraph.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
  from pgl.heter_graph import MemmapHeterGraph
label_desc: Use image node_id 4 for calling the MmapHeterGraphTest obj's underlying member method code with example usage: obj.test_sample_successor() without return types