code: def chunks(iterable, size=10):
      iterator = iter(iterable)
      for first in iterator:
          yield chain([first], islice(iterator, size - 1))
  
imports: import copy
  import os
  from collections import namedtuple
  from io import BytesIO
  import numpy
  import pyarrow
  from itertools import chain, islice
  from enum import Enum
  import json
label_desc: Use image node_id 9 for calling a global function with example usage: chunks(iterable, size) without return types