def isinstancemethod(cls, obj):
 return _isinstancemethod(cls, obj)

def isinstancemethod ( cls , obj ) : return _isinstancemethod ( cls , obj )
returns true if the given object is an instance method of the class it is defined on .