def METHOD_NAME(self, o: object) -> bool:
    if self == o:
        return True
    if not isinstance(o, ModbusPDUWriteFileRecordRequestItem):
        return False
    that: ModbusPDUWriteFileRecordRequestItem = ModbusPDUWriteFileRecordRequestItem(
        o
    )
    return (
        (self.reference_type == that.reference_type)
        and (self.file_number == that.file_number)
        and (self.record_number == that.record_number)
        and (self.record_data == that.record_data)
        and True
    )