code: def __call__(self):
      generator = self.base_node_generator
  
      for nodes in generator():
          yield nodes
  
file_path: PGL/examples/metapath2vec/datasets/node.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
label_desc: Use image node_id 2 for calling the NodeGenerator obj's underlying member method code with example usage: obj.__call__() without return types