def check_cooperative_bases(cls):
    bases = cls.__bases__
    good  = len(bases) != 1 or all(map(is_cooperative, bases))
    if not good:
        raise CooperativeError, "Can not multiple-inherit non cooperative."
dataset/ETHPy150Open arximboldi/cooper/cooper/cooper.py/check_cooperative_bases/operator `==` -> `!=`