code: def search(self, search_term, num_results, **kwargs):
          
          results = []
          count = 1
          try:
              while len(results) <= num_results:
                  search_results = self.service.cse().list(
                      q=search_term,
                      cx=self.cse_id,
                      searchType="image",
                      fileType=self.file_type,
                      start=count,
                      **kwargs).execute()
                  results.extend(
                      [r['link'] for r in search_results['items']])
                  count += len(search_results)
              results = results[:num_results]
          except KeyError as e:
              logger.warning('Exception: %s', e)
          if len(results) == 0:
              raise ZeroResultsException("No images found")
          return(results)
docs: Gets x number of Google image result urls for
          a given search term.
          Arguments
          search_term: str
              tearm to search for
          num_results: int
              number of url results to return
          return ['url','url']