code: def __init__(
      self,
      graph_wrappers,
      data,
      batch_size,
      samples,
      num_workers,
      feed_name_list,
      use_pyreader,
      phase,
      graph_data_path,
      shuffle=True,
      buf_size=1000,
      neg_type="batch_neg",
  ):
      super(GraphGenerator, self).__init__(
          buf_size=buf_size,
          num_workers=num_workers,
          batch_size=batch_size,
          shuffle=shuffle,
      )
      # For iteration
      self.line_examples = data
  
      self.graph_wrappers = graph_wrappers
      self.samples = samples
      self.feed_name_list = feed_name_list
      self.use_pyreader = use_pyreader
      self.phase = phase
      self.load_graph(graph_data_path)
      self.num_layers = len(graph_wrappers)
      self.neg_type = neg_type
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  from __future__ import absolute_import
  import os
  import pgl
  import sys
  import numpy
  from pgl.utils.logger import log
  from dataset.base_dataset import BaseDataGenerator
  from pgl.sample import alias_sample
  from pgl.sample import pinsage_sample
  from pgl.sample import graphsage_sample
  from pgl.sample import edge_hash
label_desc: Use image node_id 1 to create a new GraphGenerator object from inherited base classes: BaseDataGenerator with example: obj = GraphGenerator(graph_wrappers, data, batch_size, samples, num_workers, feed_name_list, use_pyreader, phase, graph_data_path, shuffle, buf_size, neg_type)