code: def _match_registers(self, query):
          
          if query in self._status_registers:
              register = self._status_registers[query]
              response = register.value
              logger.debug('Found response in status register: %s',
                           repr(response))
              register.clear()
  
              return response
docs: Tries to match in status registers
  
          :param query: message tuple
          :type query: Tuple[bytes]
          :return: response if found or None
          :rtype: Tuple[bytes] | None