def is_picklable(name, value):
    """Return True if an object can be pickled

    >>> import os
    >>> is_picklable('os', os)
    True

    >>> def foo(): pass
    >>> is_picklable('foo', foo)
    True

    >>> is_picklable('foo', lambda: None)
    False

    """
    if tags.RESERVED in name:
        return False
    return is_module_function(value) or not is_function(value)
dataset/ETHPy150Open jsonpickle/jsonpickle/jsonpickle/util.py/is_picklable/swapped operands of `in`