Write a function to split a dataset into stratified folds.

TechnicalAI EngineerML EngineerAI Application Dev