A very quick way could be to use WeightedRandomSample with very small / 0 weight for the bits you don’t want.
Note that things might break if you change the epoch length and tools expect the epochs to be of fixed length (len(dl)).
Best regards
Thomas