code: def _starmap_chunks(
      submit, function, iterable, timeout, unordered, chunksize
  ):
      # pylint: disable=too-many-arguments
      function = functools.partial(_apply_chunks, function)
      iterable = _build_chunks(chunksize, iterable)
      result = _starmap_helper(
          submit, function, iterable, timeout, unordered
      )
      return _chain_from_iterable_of_lists(result)
  
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 5 for calling a global function with example usage: _starmap_chunks(submit, function, iterable, timeout, unordered, chunksize) and returns: _chain_from_iterable_of_lists