def METHOD_NAME(task_folder: pathlib.Path) -> Set[str]:
    completed_folds = set()
    for fold_dir in [d for d in task_folder.iterdir() if d.is_dir()]:
        if (task_folder / fold_dir / "predictions.csv").is_file():
            completed_folds.add(fold_dir.name)
    return completed_folds