def isfunction(object):
    return isinstance(object, types.FunctionType)
Return true if the object is a user-defined function.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/inspect.py/isfunction