code: def __init__(self, config, graph, **kwargs):
      self.config = config
      self.graph = graph
      self.rank = kwargs.get("rank", 0)
      self.nrank = kwargs.get("nrank", 1)
      self.gen_mode = kwargs.get("gen_mode", "base_node_generator")
  
      self.batch_node_size = self.config.batch_node_size
  
      self.first_ntype_list = []
      for mp in self.config.meta_path.split(";"):
          self.first_ntype_list.append(mp.split("2")[0])
  
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 1 to create a new NodeGenerator object from inherited base classes: object with example: obj = NodeGenerator(config, graph)