<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_query(self, query_id):
 """Get query in device query service. :param int query_id: ID of the query to get (Required) :returns: device query object :rtype: Query """

        api = self._get_api(device_directory.DefaultApi)
        return Query(api.device_query_retrieve(query_id))