I have an ImageFolder. I see that the  __getitem__(index)  method of ImageFolder can get both the tensor and the class of an index. But what if I want to use ImageFolder to sample the images from only a particular class of my choice.
How would this be done?