Is it possible to pass two samplers in a dataloader?

Hi all,

This is related to How to generate random pairs at each epoch?, I am thinking that one possible solution to that problem is to pass two samplers (each generate a random index, so we have a random index pair) to the dataloader. I am just wondering if this is possible? Thank you!