There is one DataLoader 1, which accepts a Dataset and provides different functionalities such as shuffling, creating batches using multiple workers, etc.
To create a custom Dataset you could have a look at this tutorial 1.