code: def chunked(iterable: Iterable, step: int) -> List:
      """
      Yield successive step-sized chunks from list
      """
      iterable = iter(iterable)
      yield from iter(lambda: list(islice(iterable, step)), [])
  
imports: import copy
  import math
  from itertools import islice, product
  from typing import Dict, Iterable, Iterator, List, Optional, Tuple, Union
  import warnings
  import matplotlib.font_manager
  from matplotlib.axes import Axes
  from matplotlib.figure import Figure
  from matplotlib.patches import Patch, Rectangle
  from matplotlib.pyplot import cm
label_desc: Use image node_id 4 for calling a global function with example usage: chunked(iterable, step) without return types