code: def _wait_for_request(self, uuid, connection_adapter=None):
          
          start_time = time.time()
          while not self._response[uuid]:
              connection_adapter.check_for_errors()
              if time.time() - start_time > self._timeout:
                  self._raise_rpc_timeout_error(uuid)
              time.sleep(IDLE_WAIT)
docs: Wait for RPC request to arrive.
  
          :param str uuid: Rpc Identifier.
          :param obj connection_adapter: Provide custom connection adapter.
          :return: