def query(self, query, size='medium', style='photo', num_results=64):
        # check input
        if num_results > 64:
            raise ValueError('Google API currently allows for a maximum of 64 results to be returend')

        # prepare query parameters
        size = self._size_to_native_size(size)
        style = self._style_to_native_style(style)

        # prepare auxilary parameter list
        aux_params = {'v': '1.0',
                      'key': GOOGLE_OLD_API_KEY}
        if size:
            aux_params['imgsz'] = size
        if style:
            aux_params['imgtype'] = style

        # prepare output
        results = []

        # do request
        results = self._fetch_results(query,
                                      num_results,
                                      aux_params=aux_params)

        return self.__google_results_to_results(results)
dataset/ETHPy150Open kencoken/imsearch-tools/imsearchtools/engines/google_old_api.py/GoogleOldAPISearch.query/original