code: def request(self, method, params):
          
          identifier = random.randint(1, 1000)
          self._transport.write(jsonrpc_request(method, identifier, params))
          self._buffer[identifier] = {'flag': asyncio.Event()}
          yield from self._buffer[identifier]['flag'].wait()
          result = self._buffer[identifier]['data']
          del self._buffer[identifier]['data']
          return result
docs: Send a JSONRPC request.