title: Get single random example from PyTorch DataLoader
body: <p>How do I get a single random example from a PyTorch <a href="https://pytorch.org/docs/stable/data.html?highlight=dataloader#torch.utils.data.DataLoader" rel="noreferrer"><code>DataLoader</code></a>?</p>
  <p>If my <code>DataLoader</code> gives minbatches of multiple images and labels, how do I get a single random image and label?</p>
  <p>Note that I don't want a single image and label per minibatch, I want a total of one example.</p>