code: def query_log(self,
                    filter=None,
                    query=None,
                    count=None,
                    offset=None,
                    sort=None,
                    **kwargs):
          headers = {}
          if 'headers' in kwargs:
              headers.update(kwargs.get('headers'))
          sdk_headers = get_sdk_headers('discovery', 'V1', 'query_log')
          headers.update(sdk_headers)
          params = {
              'version': self.version,
              'filter': filter,
              'query': query,
              'count': count,
              'offset': offset,
              'sort': self._convert_list(sort)
          }
          url = '/v1/logs'
          response = self.request(
              method='GET',
              url=url,
              headers=headers,
              params=params,
              accept_json=True)
          return response