def valfilter(predicate, d, factory=dict):
    rv = factory()
    for k, v in iteritems(d):
        if predicate(v):
            rv[k] = v
    return rv
Validate an API plugin, ensuring it is an API plugin and has the
dataset/ETHPy150Open pytoolz/toolz/toolz/dicttoolz.py/valfilter--crossover with--dataset/ETHPy150Open snare/voltron/voltron/plugin.py/PluginManager.valid_api_plugin