def METHOD_NAME(self, o: object) -> bool:
    if self == o:
        return True
    if not isinstance(o, ModbusPDUMaskWriteHoldingRegisterRequest):
        return False
    that: ModbusPDUMaskWriteHoldingRegisterRequest = (
        ModbusPDUMaskWriteHoldingRegisterRequest(o)
    )
    return (
        (self.reference_address == that.reference_address)
        and (self.and_mask == that.and_mask)
        and (self.or_mask == that.or_mask)
        and super().METHOD_NAME(that)
        and True
    )