code: def create_from_response_pdu(resp_pdu, req_pdu):
          
          read_holding_registers = ReadHoldingRegisters()
          read_holding_registers.quantity = struct.unpack('>H', req_pdu[-2:])[0]
          read_holding_registers.byte_count = \
              struct.unpack('>B', resp_pdu[1:2])[0]
  
          fmt = '>' + (conf.TYPE_CHAR * read_holding_registers.quantity)
          read_holding_registers.data = list(struct.unpack(fmt, resp_pdu[2:]))
  
          return read_holding_registers
docs: Create instance from response PDU.
  
          Response PDU is required together with the number of registers read.
  
          :param resp_pdu: Byte array with request PDU.
          :param quantity: Number of coils read.
          :return: Instance of :class:`ReadCoils`.