def _should_curry(f):
    do_curry = frozenset((toolz.map, toolz.filter, toolz.sorted, toolz.reduce,
                          toolz.excepts))
    return (callable(f) and _nargs(f) > 1 or f in do_curry)
dataset/ETHPy150Open pytoolz/toolz/toolz/curried/__init__.py/_should_curry/original