def map(self, fn, *iterables, **kwargs):
timeout = kwargs.get('<STR_LIT>', None)<EOL>chunksize = kwargs.get('<STR_LIT>', <NUM_LIT:1>)<EOL>if chunksize < <NUM_LIT:1>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>results = super(ProcessPoolExecutor, self).map(<EOL>partial(_process_chunk, fn), _get_chunks(chunksize, *iterables),<EOL>timeout=timeout)<EOL>return _chain_from_iterable_of_lists(results)<EOL>
Returns an iterator equivalent to map(fn, iter).

        Args:
            fn: A callable that will take as many arguments as there are
                passed iterables.
            timeout: The maximum number of seconds to wait. If None, then there
                is no limit on the wait time.
            chunksize: If greater than one, the iterables will be chopped into
                chunks of size chunksize and submitted to the process pool.
                If set to one, the items in the list will be sent one at a
                time.

        Returns:
            An iterator equivalent to: map(func, *iterables) but the calls may
            be evaluated out-of-order.

        Raises:
            TimeoutError: If the entire result iterator could not be generated
                before the given timeout.
            Exception: If fn(*args) raises for any values.