code: def __init__(self, config, dataset):
      self.config = config
      self.dataset = dataset
      self.graph = self.dataset.graph
      self.walk_generator = WalkGenerator(self.config, self.dataset)
  
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 DataGenerator object from inherited base classes: object with example: obj = DataGenerator(config, dataset)