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