basic manuals, test for generate_folds