def overrides_method(cls, method_name):
    return method_name in cls.__dict__ or \
           hasattr(super(cls, cls), method_name)
dataset/ETHPy150Open arximboldi/cooper/cooper/cooper.py/overrides_method/operator `and` -> `or`