Alternating dataloader

Hello,
Is there a pre-existing dataloader somewhere that accepts N datasets and loads samples from a different dataset each time (say, in a round-robin fashion).
I need this for some form of naïve supervised transfer learning method I am trying via a multi-headed network with a common feature extraction module. The output of each batch will go into head n, where n is the n’th dataset.