code: def batch_iter(data, perm, batch_size, fid, num_workers):
      """node_batch_iter"""
      size = len(data)
      start = 0
      cc = 0
      while start < size:
          index = perm[start : start + batch_size]
          start += batch_size
          cc += 1
          if cc % num_workers != fid:
              continue
          yield data[index]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  from __future__ import absolute_import
  import os
  import sys
  import six
  from io import open
  from collections import namedtuple
  import numpy
  import tqdm
  import paddle
  from pgl.utils import mp_reader
  import collections
  import time
  import pgl
label_desc: Use image node_id 1 for calling a global function with example usage: batch_iter(data, perm, batch_size, fid, num_workers) without return types