def __eq__(self, other):
    return (isinstance(other, ApplyUnaryOp) and (other.op == self.op) and (other.x == self.x))
def __eq__(self, other):
    return (isinstance(other, ApplyUnaryOp) and (other.op == self.op) and (other.x == self.x))