def METHOD_NAME(read_buffer: ReadBuffer):
    read_buffer.push_context("ModbusPDUWriteFileRecordResponseItem")
    self.reference_type = read_simple_field("referenceType", read_unsigned_short)
    self.file_number = read_simple_field("fileNumber", read_unsigned_int)
    self.record_number = read_simple_field("recordNumber", read_unsigned_int)
    record_length: int = read_implicit_field("recordLength", read_unsigned_int)
    self.record_data = read_buffer.read_byte_array("recordData", int(record_length))
    read_buffer.pop_context("ModbusPDUWriteFileRecordResponseItem")
    # Create the instance
    _modbus_pdu_write_file_record_response_item: ModbusPDUWriteFileRecordResponseItem = ModbusPDUWriteFileRecordResponseItem(
        reference_type, file_number, record_number, record_data
    )
    return _modbus_pdu_write_file_record_response_item