def _check_result_and_store_references(self, result, results, n, total_runs):
        if result[0] == sigint_handling.SIGINT:
            self._stop_iteration = True
            result = result[1]  # If SIGINT result is a nested tuple
        if result is not None:
            if self._wrap_mode == pypetconstants.WRAP_MODE_LOCAL:
                self._multiproc_wrapper.store_references(result[2])
            self._traj._update_run_information(result[1])
            results.append(result[0])
            if self._resumable:
                # [0:2] to not store references
                self._trigger_result_snapshot(result[0:2])
        self._show_progress(n, total_runs)
        n += 1
        return n
collapse subdriver iteration sets into single nodes.
dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/environment.py/Environment._check_result_and_store_references--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/driver.py/Driver._collapse_subdrivers