def METHOD_NAME(callable):
    """A hack to make json_tricks work on Python 2, after some unknown module
    has injected getfullargspec into inspect.
    """
    from functools import partial
    from logging import warn
    from sys import version_info
    from inspect import getargspec
    if type(callable) == partial and version_info[0] == 2:
        if not hasattr(get_arg_names, '__warned_partial_argspec'):
            get_arg_names.__warned_partial_argspec = True
            warn("'functools.partial' and 'inspect.getargspec' are not compatible in this Python version; "
                 "ignoring the 'partial' wrapper when inspecting arguments of {}, which can lead to problems".format(callable))
        return set(getargspec(callable.func).args)
    argspec = getargspec(callable)
    return set(argspec.args)