def is_picklable(name, value):
    "Return True if an object can be pickled\n\n    >>> import os\n    >>> is_picklable('os', os)\n    True\n\n    >>> def foo(): pass\n    >>> is_picklable('foo', foo)\n    True\n\n    >>> is_picklable('foo', lambda: None)\n    False\n\n    "
    if (name in tags.RESERVED):
        return False
    return (is_module_function(value) or (not is_function(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
def is_picklable(name, value):
    "Return True if an object can be pickled\n\n    >>> import os\n    >>> is_picklable('os', os)\n    True\n\n    >>> def foo(): pass\n    >>> is_picklable('foo', foo)\n    True\n\n    >>> is_picklable('foo', lambda: None)\n    False\n\n    "
    if (name in tags.RESERVED):
        return False
    return (is_module_function(value) or (not is_function(value)))