code: def batch_iter(data, batch_size):
      """node_batch_iter"""
      size = len(data)
      perm = np.arange(size)
      np.random.shuffle(perm)
      start = 0
      while start < size:
          index = perm[start : start + batch_size]
          start += batch_size
          yield data[index]
  
file_path: PGL/legacy/examples/SAGPool/dataloader.py
imports: import numpy
  import collections
  import paddle
  import pgl
  from pgl.utils.logger import log
  from pgl.graph import Graph, MultiGraph
label_desc: Use image node_id 1 for calling a global function with example usage: batch_iter(data, batch_size) without return types