def is_method(function):
 return isinstance(function, MethodType)

def is_method ( function ) : return isinstance ( function , MethodType )
returns true if the passed in function is identified as a method .