code: def get_query(self, query_id):
          
          api = self._get_api(device_directory.DefaultApi)
          return Query(api.device_query_retrieve(query_id))
docs: Get query in device query service.
  
          :param int query_id: ID of the query to get (Required)
          :returns: device query object
          :rtype: Query