def ismethoddescriptor(object):
    return (hasattr(object, "__get__")
            and not hasattr(object, "__set__") # else it's a data descriptor
            and not ismethod(object)           # mutual exclusion
            and not isfunction(object)
            and not isclass(object))
Return true if the object is a method descriptor.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/inspect.py/ismethoddescriptor