Solved by ptrblck in post #2 
              
              
                Yes, you can reduce the len of the Dataset, which would then create samples using index values in the __getitem__ method in [0, len(dataset)-1].