code: def _build_chunks(chunksize, iterable):
      iterable = iter(iterable)
      while True:
          chunk = tuple(itertools.islice(iterable, chunksize))
          if not chunk:
              return
          yield (chunk,)
  
imports: import sys
  import time
  import functools
  import itertools
  import threading
  from ._base import Future
  from ._base import Executor
  from ._base import as_completed
  from .None import _core
label_desc: Use image node_id 3 for calling a global function with example usage: _build_chunks(chunksize, iterable) without return types