code: def base_walk_generator(self):
      meta_paths = self.meta_path.split(";")
      for nodes, idx in self.node_generator():
          #  start = time.time()
          if self.config.walk_times is not None:
              walks = Sampler.metapath_randomwalk_with_walktimes(
                  self.graph,
                  nodes,
                  meta_paths[idx],
                  self.config.walk_len,
                  self.config.walk_times,
              )
  
          else:
              walks = Sampler.metapath_randomwalk(
                  self.graph,
                  nodes,
                  meta_paths[idx],
                  self.config.walk_len,
              )
  
          yield walks
  
file_path: PGL/examples/metapath2vec/datasets/walk.py
imports: import os
  import sys
  import time
  import warnings
  import numpy
  from collections import defaultdict
  from pgl.utils.logger import log
  from pgl.distributed import DistGraphClient, DistGraphServer
  from utils.config import prepare_config
  from datasets.helper import stream_shuffle_generator, AsynchronousGenerator
  from datasets.node import NodeGenerator
  import datasets.sampling
label_desc: Use image node_id 3 for calling the WalkGenerator obj's underlying member method code with example usage: obj.base_walk_generator() without return types