In that case, you should assign all four returned value to a single one or to four separate ones:
for, data, target, data_path, target_path in dataloaders[phase]:
    ...

I think your code should work even if you use the same name, as it seems you didn’t import DataLoader directly. However, if it’s not too much of an effort, I would rename your dict.