docstr: Args:
      generator: fake generator, ignore it
docstr_tok: ["Args",":","generator",":","fake","generator",",","ignore","it"]
code: def __call__(self, generator=None):
      """
      Args:
          generator: fake generator, ignore it
      """
      node_generator = getattr(self, self.gen_mode)
  
      nodes_count = 0
      for nodes in node_generator():
          nodes_count += len(nodes[0])
          yield nodes
  
      log.info(
          "total [%s] number nodes have been processed in rank [%s]"
          % (nodes_count, self.rank)
      )
  
file_path: PGL/apps/Graph4Rec/env_run/src/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__(generator) without return types