Ë
    Ï—¬jI  ã                   ó.   — d dl mZ d dlmZ dee   fd„Zy)é    )Údefaultdict)Údefault_collateÚbatchc                 ó¸   — 	 t        t        «      }| D ]  }||d   d      j                  |«       Œ i }|j                  «       D ]  \  }}t	        |«      ||<   Œ |S )zè
    Collects the outputs of multiple datasets into a single batch.

    Args:
        batched (dict): A dictionary of batched data from multiple datasets.

    Returns:
        dict: A dictionary of the collected batched data.
    ÚmetaÚ
dataset_id)r   ÚlistÚappendÚitemsr   )r   Úgrouped_batchesÚitemÚcollated_batchr   r   s         úu/root/disk_3tb/EEG-sAAD-Grand-Challenge-Training-Dataset/SuperHugeAAD/superhuge/data/datasets/collect_multidataset.pyÚcollect_multidatasetr      sp   € ð Nä!¤$Ó'€Oó ˆØ˜˜V™ \Ñ2Ñ3×:Ñ:¸4Õ@ð ð €NØ,×2Ñ2Ö4Ñˆ
�EÜ%4°UÓ%;ˆ�zÒ"ð 5ð Ðó    N)Úcollectionsr   Útorch.utils.data._utils.collater   r	   Údictr   © r   r   Ú<module>r      s   ðÝ #å ;ð  T¡
ô r   