code: def collect(fs):
      """Gather a collection of futures in a new future.
  
      Args:
          fs: Collection of futures.
  
      Returns:
          New future producing as result a list with results from *fs*.
  
      """
      return _Collect()(fs)
  
file_path: mpi4py/src/mpi4py/futures/util.py
imports: import collections
  import functools
  import threading
  from .None import _base
label_desc: Use image node_id 1 for calling a global function with example usage: collect(fs) and returns: _Collect