docstr: Args:
      config: config dict
      graph: graph client
docstr_tok: ["Args",":","config",":","config","dict","graph",":","graph","client"]
code: def __init__(self, config, graph, **kwargs):
      """
      Args:
          config: config dict
          graph: graph client
      """
  
      self.config = config
      self.graph = graph
      self.rank = kwargs.get("rank", 0)
      self.nrank = kwargs.get("nrank", 1)
  
file_path: PGL/apps/Graph4Rec/env_run/src/datasets/pair.py
imports: import os
  import sys
  import time
  import warnings
  import numpy
  from collections import defaultdict
  from pgl.graph_kernel import skip_gram_gen_pair
  from pgl.utils.logger import log
  from pgl.distributed import DistGraphClient, DistGraphServer
  from pgl.utils.data import Dataloader, StreamDataset
  from utils.config import prepare_config
  from datasets.node import NodeGenerator
  from datasets.walk import WalkGenerator
  from datasets.helper import stream_shuffle_generator, AsynchronousGenerator
label_desc: Use image node_id 1 to create a new PairGenerator object from inherited base classes: object with example: obj = PairGenerator(config, graph)