docstr: Args:
      walkpath_files: if is not None, read walk path from walkpath_files
docstr_tok: ["Args",":","walkpath_files",":","if","is","not","None",",","read","walk","path","from","walkpath_files"]
code: def __init__(
      self,
      graph,
      batch_size=512,
      walk_len=40,
      win_size=5,
      neg_num=5,
      train_files=None,
      walkpath_files=None,
      neg_sample_type="average",
  ):
      """
      Args:
          walkpath_files: if is not None, read walk path from walkpath_files
      """
      self.graph = graph
      self.batch_size = batch_size
      self.walk_len = walk_len
      self.win_size = win_size
      self.neg_num = neg_num
      self.train_files = train_files
      self.walkpath_files = walkpath_files
      self.neg_sample_type = neg_sample_type
  
imports: from __future__ import division
  from __future__ import absolute_import
  from __future__ import print_function
  import time
  import io
  import os
  import numpy
  import paddle
  from pgl.utils.logger import log
  from pgl.sample import node2vec_sample
  from pgl.sample import deepwalk_sample
  from pgl.sample import alias_sample
  from pgl.graph_kernel import skip_gram_gen_pair
  from pgl.graph_kernel import alias_sample_build_table
  from pgl.utils import mp_reader
label_desc: Use image node_id 1 to create a new DeepwalkReader object from inherited base classes: object with example: obj = DeepwalkReader(graph, batch_size, walk_len, win_size, neg_num, train_files, walkpath_files, neg_sample_type)