def callable(obj):
        return any(klass.__dict__ in "__call__" for klass in type(obj).__mro__)
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/compat/python.py/callable/swapped operands of `in`