def map(function, iterable, *args, **kwargs):
    """This function is equivalent to:
        >>> [function(x, args[0], args[1],...) for x in iterable]

       :param pm_parallel: Force parallelization on/off
       :type pm_parallel: bool
       :param pm_chunksize: see  :py:class:`multiprocessing.pool.Pool`
       :type pm_chunksize: int
       :param pm_pool: Pass an existing pool
       :type pm_pool: multiprocessing.pool.Pool
       :param pm_processes: Number of processes to use in the pool. See
         :py:class:`multiprocessing.pool.Pool`
       :type pm_processes: int
       :param pm_pbar: Show progress bar
       :type pm_pbar: bool
    """
    return _map_or_starmap(function, iterable, args, kwargs, "map")
This function is equivalent to:
        >>> [function(x, args[0], args[1],...) for x in iterable]

       :param pm_parallel: Force parallelization on/off
       :type pm_parallel: bool
       :param pm_chunksize: see  :py:class:`multiprocessing.pool.Pool`
       :type pm_chunksize: int
       :param pm_pool: Pass an existing pool
       :type pm_pool: multiprocessing.pool.Pool
       :param pm_processes: Number of processes to use in the pool. See
         :py:class:`multiprocessing.pool.Pool`
       :type pm_processes: int
       :param pm_pbar: Show progress bar
       :type pm_pbar: bool