<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def websocket_query(self, path, params={}):
 """ Open a websocket connection :param path: Endpoint in API :param params: Parameters added as a query arg :returns: Websocket """


        url = "http://docker/v" + self._api_version + "/" + path
        connection = yield from self._session.ws_connect(url,
                                                         origin="http://docker",
                                                         autoping=True)
        return connection