<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_impala_queries(self, start_time, end_time, filter_str="", limit=100, offset=0):
 """ Returns a list of queries that satisfy the filter @type start_time: datetime.datetime. Note that the datetime must either be time zone aware or specified in the server time zone. See the python datetime documentation for more details about python's time zone handling. @param start_time: Queries must have ended after this time @type end_time: datetime.datetime. Note that the datetime must either be time zone aware or specified in the server time zone. See the python datetime documentation for more details about python's time zone handling. @param end_time: Queries must have started before this time @param filter_str: A filter to apply to the queries. For example: 'user = root and queryDuration > 5s' @param limit: The maximum number of results to return @param offset: The offset into the return list @since: API v4 """

    params = {
      'from':   start_time.isoformat(),
      'to':     end_time.isoformat(),
      'filter': filter_str,
      'limit':  limit,
      'offset': offset,
    }
    return self._get("impalaQueries", ApiImpalaQueryResponse,
        params=params, api_version=4)