code: def batch_iter(it, batch_size=64):
      """Iterate through an iterable object in batches."""
      while True:
          batch = list(itertools.islice(it, batch_size))
          if not batch:
              break
          yield batch
  
imports: import itertools
  import types
  from collections.abc import Iterable
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: batch_iter(it, batch_size) without return types