def _extract_data_type(self, data_type):
        """Function that merges data of the current data_type (e.g. train) from all task_iterators into one dict"""
        dataset_part = {}
        for task, iterator in self.task_iterators.items():
            dataset_part[task] = getattr(iterator, data_type)
        return dataset_part
Function that merges data of the current data_type (e.g. train) from all task_iterators into one dict
deeppavlov/dataset_iterators/multitask_iterator.py