def _single_run(kwargs):
pypet_root_logger = logging.getLogger('<STR_LIT>')<EOL>traj = kwargs['<STR_LIT>']<EOL>runfunc = kwargs['<STR_LIT>']<EOL>runargs = kwargs['<STR_LIT>']<EOL>kwrunparams = kwargs['<STR_LIT>']<EOL>clean_up_after_run = kwargs['<STR_LIT>']<EOL>automatic_storing = kwargs['<STR_LIT>']<EOL>wrap_mode = kwargs['<STR_LIT>']<EOL>idx = traj.v_idx<EOL>total_runs = len(traj)<EOL>pypet_root_logger.info('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' % (idx, total_runs))<EOL>traj.f_start_run(turn_into_run=True)<EOL>result = runfunc(traj, *runargs, **kwrunparams)<EOL>if automatic_storing:<EOL><INDENT>traj.f_store()<EOL><DEDENT>if wrap_mode == pypetconstants.WRAP_MODE_LOCAL:<EOL><INDENT>result = ((traj.v_idx, result),<EOL>traj.f_get_run_information(traj.v_idx, copy=False),<EOL>traj.v_storage_service.references)<EOL>traj.v_storage_service.free_references()<EOL><DEDENT>else:<EOL><INDENT>result = ((traj.v_idx, result),<EOL>traj.f_get_run_information(traj.v_idx, copy=False))<EOL><DEDENT>traj.f_finalize_run(store_meta_data=False,<EOL>clean_up=clean_up_after_run)<EOL>pypet_root_logger.info('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' % (idx, total_runs))<EOL>return result<EOL>
Performs a single run of the experiment.

    :param kwargs: Dict of arguments

        traj: The trajectory containing all parameters set to the corresponding run index.

        runfunc: The user's job function

        runargs: The arguments handed to the user's job function (as *args)

        runkwargs: The keyword arguments handed to the user's job function (as **kwargs)

        clean_up_after_run: Whether to clean up after the run

        automatic_storing: Whether or not the data should be automatically stored

        result_queue: A queue object to store results into in case a pool is used, otherwise None

    :return:

        Results computed by the user's job function which are not stored into the trajectory.
        Returns a nested tuple of run index and result and run information:
        ``((traj.v_idx, result), run_information_dict)``