docstr: Run query through SerpAPI and return the raw result.
docstr_tok: ["Run","query","through","SerpAPI","and","return","the","raw","result","."]
code: def results(self, query: str) -> dict:
      # Fix non-thread-safe langchain swapping out sys directly.
      """Run query through SerpAPI and return the raw result."""
      params = self.get_params(query)
      search = self.search_engine(params)
      res = search.get_dict()
      return res
  
file_path: h2ogpt/src/serpapi.py
imports: import functools
  import typing
  import aiohttp
  from langchain.docstore.document import Document
  from langchain.utilities import SerpAPIWrapper
  from src.utils_langchain import _chunk_sources, add_parser, _add_meta
  from urllib.parse import urlparse
label_desc: Use image node_id 5 for calling the H2OSerpAPIWrapper obj's underlying member method code with example usage: obj.results(query) and returns: res