<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_details(self, query_id, format='text'):
 """ Get the query details @param query_id: The query ID @param format: The format of the response ('text' or 'thrift_encoded') @return: The details text @since: API v4 """

    return self._get("impalaQueries/" + query_id, ApiImpalaQueryDetailsResponse,
        params=dict(format=format), api_version=4)