How does one obtain indicies from a dataloader?