code: def ibatch(iterable, size):
      sourceiter = iter(iterable)
      while True:
          batchiter = islice(sourceiter, size)
          yield chain([next(batchiter)], batchiter)
  
file_path: magnitude/pymagnitude/converter_shared.py
imports: import hashlib
  import numpy
  import os
  from itertools import islice, chain
label_desc: Use image node_id 7 for calling a global function with example usage: ibatch(iterable, size) without return types