def partition(predicate, values):
    results = ([], [])
    for item in values:
        results[predicate(item)].append(item)
    return results
Splits the values into two sets, based on the return value of the function
dataset/ETHPy150Open django/django/django/utils/functional.py/partition