def run_map(self, runfunc, *iter_args, **iter_kwargs):
        """Calls runfunc with different args and kwargs each time.

        Similar to `:func:`~pypet.environment.Environment.run`
        but all ``iter_args`` and ``iter_kwargs`` need to be iterables,
        iterators, or generators that return new arguments for each run.

        """
        if len(iter_args) == 0 and len(iter_kwargs) == 0:
            raise ValueError('Use `run` if you don`t have any other arguments.')
        pipeline = lambda traj: ((runfunc, iter_args, iter_kwargs),
                                 (self._postproc, self._postproc_args, self._postproc_kwargs))

        self._user_pipeline = False
        self._map_arguments = True
        return self._execute_runs(pipeline)
dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/environment.py/Environment.run_map/original