Or you can create different data loaders for both of them.
loader1 = torch.utils.data.DataLoader(...)
loader2 = torch.utils.data.DataLoader(...)

for data1, labels1, data2, labels2 in zip(loader1, loader2):
    # You can also shuffle the data if you want here
    data = torch.stack([data1, data2])