def itemfilter(predicate, d, factory=dict):
    rv = factory()
    for item in iteritems(d):
        if predicate(item):
            k, v = item
            rv[k] = v
    return rv
Make sure that when install a package with multiple versions the newest
dataset/ETHPy150Open pytoolz/toolz/toolz/dicttoolz.py/itemfilter--crossover with--dataset/ETHPy150Open jlisee/xpkg/python/tests/fulltests.py/FullTests.test_install_most_recent