def METHOD_NAME(self, o: object) -> bool:
    if self == o:
        return True
    if not isinstance(o, ModbusPDUWriteFileRecordResponseItem):
        return False
    that: ModbusPDUWriteFileRecordResponseItem = (
        ModbusPDUWriteFileRecordResponseItem(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
    )