code: def doclink(
      name: str,
      default_link: t.Optional[str] = None,
      template: t.Optional[str] = None,
      package_version: str = __version__,
  ) -> str:
      """Get documentation link.
  
      Parameters
      ----------
      name: str
          the name of the required link as appears in the links' dictionary.
      default_link: t.Optional[str], default: None
          default like to use if no link corresponding to name was found.
      template: t.Optional[str], default: None
          a string template in which to incorporate the link.
      package_version: str
          which version of the docs to use
  
      Returns
      -------
      str
          The template text incorporated with the relevant link
      """
      index = (
          links[package_version]
          if package_version in links
          else (links.get("default") or {})
      )
  
      link = index.get(name) or default_link
  
      if link is None:
          return ""
  
      return link if template is None else template.format(link=link)
  
label_desc: Use image node_id 1 for calling a global function with example usage: doclink(name, default_link, template, package_version) and returns: unknown, str