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: Get the version compatibility information of the model.
docstr_tok: ["Get","the","version","compatibility","information","of","the","model","."]
code: def get_module_compat_info(self, name: str) -> dict:
      """Get the version compatibility information of the model."""
      params = {"name": name}
      result = self.request(path="info", params=params)
      if result["status"] == 0 and len(result["data"]) > 0:
          infos = {}
          for _info in result["data"]["info"]:
              infos[_info["version"]] = {
                  "url": _info["url"],
                  "paddle_version": convert_version(
                      _info["paddle_version"]
                  ),
                  "hub_version": convert_version(_info["hub_version"]),
              }
          return infos
  
      return {}
  
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 4 for calling the ServerSource obj's underlying member method code with example usage: obj.get_module_compat_info(name) and returns: dict, infos