So the len() method should return the dataset’s length, right?
You kinda confused me with the getitem() method  In the tutorial from the link you have provided me in your first reply, the getitem() returns a single “object” with its label.  Now you told me that it needs to return a bunch of samples.  Could you make it more clear please? Cheers