def all_pairs_matching_predicate(values, pred):
    return filter(lambda pair: pred(*pair), product(values, repeat=2))
Return an iterator of all pairs, (v0, v1) from values such that
dataset/ETHPy150Open quantopian/zipline/zipline/testing/core.py/all_pairs_matching_predicate