code: def node_batch_iter(nodes, node_label, batch_size):
      """node_batch_iter"""
      perm = np.arange(len(nodes))
      np.random.shuffle(perm)
      start = 0
      while start < len(nodes):
          index = perm[start : start + batch_size]
          start += batch_size
          yield nodes[index], node_label[index]
  
file_path: PGL/legacy/examples/distribute_graphsage/reader.py
imports: import os
  import sys
  import numpy
  import pickle
  import paddle
  import paddle.fluid
  import socket
  import pgl
  import time
  from pgl.utils import mp_reader
  from pgl.utils.logger import log
  from pgl import redis_graph
label_desc: Use image node_id 1 for calling a global function with example usage: node_batch_iter(nodes, node_label, batch_size) without return types