class_docstr: PaddleHub server source
  
  Args:
      url(str) : Url of the server
      timeout(int) : Request timeout
class_docstr_tok: ["PaddleHub","server","source","Args",":","url","(","str",")",":","Url","of","the","server","timeout","(","int",")",":","Request","timeout"]
docstr: Request server.
docstr_tok: ["Request","server","."]
code: def request(self, path: str, params: dict) -> dict:
      """Request server."""
      api = "{}/{}".format(self._url, path)
      try:
          result = requests.get(api, params, timeout=self._timeout)
          return result.json()
      except requests.exceptions.ConnectionError as e:
          raise ServerConnectionError(self._url)
  
file_path: PaddleHub/paddlehub/server/server_source.py
imports: import json
  from typing import List
  import requests
  import paddlehub
  from paddlehub.utils import platform
  from paddlehub.utils.utils import convert_version
  from paddlehub.utils.utils import Version
label_desc: Use image node_id 5 for calling the ServerSource obj's underlying member method code with example usage: obj.request(path, params) and returns: result