def k_fold_boundaries(values, folds):
    """Take a list of values and number of folds, return equally spaced boundaries as tuples"""
    return [
        (int((i / folds) * len(values)), int(((i + 1) / folds) * (len(values))))
        for i in range(folds)
    ]