code: def query(self, method, path, data={}, params={}):
          
  
          response = yield from self.http_query(method, path, data=data, params=params)
          body = yield from response.read()
          if body and len(body):
              if response.headers['CONTENT-TYPE'] == 'application/json':
                  body = json.loads(body.decode("utf-8"))
              else:
                  body = body.decode("utf-8")
          log.debug("Query Docker %s %s params=%s data=%s Response: %s", method, path, params, data, body)
          return body
docs: Make a query to the docker daemon and decode the request
  
          :param method: HTTP method
          :param path: Endpoint in API
          :param data: Dictionary with the body. Will be transformed to a JSON
          :param params: Parameters added as a query arg