code: def group_into_chunks(n, iterable):
      """Group iterable into chunks of size at most n.
  
      See https://stackoverflow.com/a/8998040.
      """
      it = iter(iterable)
      while True:
          chunk = tuple(itertools.islice(it, n))
          if not chunk:
              return
          yield chunk
  
imports: import contextlib
  import itertools
  import math
  import operator
  import platform
  import hashlib
  import inspect
  import sys
  import uuid
  import os
  import asyncio
  import collections
  from pathlib import Path
  from snakemake._version import get_versions
  from snakemake_interface_common.exceptions import WorkflowError
label_desc: Use image node_id 18 for calling a global function with example usage: group_into_chunks(n, iterable) without return types