Cross Validation split change with each epoch

Hi everyone,

I’m looking to implement cross-validation during training so that in each epoch, a different validation set is used. Say I wanted to train with 10-fold cross-validation, then the data would have to be split into 10 mutually exclusive sets so that on each epoch a different set is used for validation and the rest for training. How would you go about implementing this? maybe a method extension of ItemList?
Thank you very much in advance.