I have taken CIFAR 100 dataset from pytorch torchvisions.datasets then made a dataloader to get images,labels.I don’t actually know the proper format of dataset .I am attaching this link which can give you more idea about dataset.
https://pytorch.org/docs/stable/_modules/torchvision/datasets/cifar.html#CIFAR10 20