See for example hugging face datasets repo structure https://huggingface.co/docs/datasets/repository_structure and torchvision [DatasetFolder](https://pytorch.org/vision/stable/generated/torchvision.datasets.DatasetFolder.html#torchvision.datasets.DatasetFolder.find_classes)