How to check if a function is a method of some object?
For example:
def check_method(f): ... check_method(lambda x: x + 1) # >>>
It is also possible to check against the types defined in the built in types library:
import types isinstance(obj.method, types.MethodType) # True