def has_kwargs(f):
    if sys.version_info[0] == 2:  # pragma: py3 no cover
        spec = inspect.getargspec(f)
        return bool(spec and (spec.keywords or spec.defaults))
    if sys.version_info[0] == 3:  # pragma: py2 no cover
        spec = inspect.getfullargspec(f)
        return bool(spec.defaults)
Verifies that the given item is not empty.
dataset/ETHPy150Open pytoolz/toolz/toolz/functoolz.py/has_kwargs--crossover with--dataset/ETHPy150Open shellderp/sublime-robot-plugin/lib/robot/libraries/BuiltIn.py/_Verify.should_not_be_empty