class_docstr: Node generator
class_docstr_tok: ["Node","generator"]
docstr: files_node_generate
docstr_tok: ["files_node_generate"]
code: def files_node_generate(self):
      """files_node_generate"""
      nodes = []
      for filename in self.node_files:
          with io.open(filename) as inf:
              for line in inf:
                  node = int(line.strip("\n\t"))
                  nodes.append(node)
                  if len(nodes) == self.batch_size:
                      yield nodes
                      nodes = []
      if len(nodes):
          yield nodes
  
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 5 for calling the NodeGenerator obj's underlying member method code with example usage: obj.files_node_generate() without return types