code: def chunks(
      iterable: List[Dict[str, Union[str, int, float, "ndarray"]]],
      size: int = 10,
  ) -> Iterator[chain]:
      iterator = iter(iterable)
      for first in iterator:
          yield chain([first], islice(iterator, size - 1))
  
imports: from collections import namedtuple
  from io import BytesIO
  import numpy
  from itertools import chain, islice
  from enum import Enum
  import json
  from bigdl.dllib.utils.log4Error import *
  from typing import Any, Dict, Iterator, List, Union, TYPE_CHECKING
label_desc: Use image node_id 9 for calling a global function with example usage: chunks(iterable, size) without return types