K-fold CV for historical data environment

Hi! I have env based on historical data and I would like to use
k-fold cv to validate hyper parameter search trials.
Can anybody to advise me the best way of implementing this with ray?