def iterate_dataloaders(dataloaders):
    """Alternatively generate data from multiple dataloaders,
    since we use `zip` to concat multiple dataloaders,
    the loop will end when the smaller dataloader runs out.

    Args:
        dataloaders List(DataLoader): can be a single or multiple dataloaders
    """
    for data_tuples in zip(*dataloaders):
        for idx, data in enumerate(data_tuples):
            yield dataloaders[idx].dataset.media_type, data
Alternatively generate data from multiple dataloaders,
since we use `zip` to concat multiple dataloaders,
the loop will end when the smaller dataloader runs out.

Args:
dataloaders List(DataLoader): can be a single or multiple dataloaders
videomamba/video_mm/dataset/__init__.py