class_docstr: Node generator
class_docstr_tok: ["Node","generator"]
code: def __init__(self, config, graph):
      self.config = config
      self.graph = graph
  
      self.batch_size = self.config.batch_size
      self.shuffle = self.config.node_shuffle
      self.node_files = self.config.node_files
      self.first_node_type = self.config.first_node_type
      self.walk_mode = self.config.walk_mode
  
imports: from __future__ import division
  from __future__ import absolute_import
  from __future__ import print_function
  import time
  import io
  import os
  import numpy
  import random
  from pgl.utils.logger import log
  from pgl.sample import metapath_randomwalk
  from pgl.graph_kernel import skip_gram_gen_pair
  from pgl.graph_kernel import alias_sample_build_table
  from utils import load_config
  from graph import m2vGraph
  import mp_reader
label_desc: Use image node_id 1 to create a new NodeGenerator object from inherited base classes: object with example: obj = NodeGenerator(config, graph)