code: def linkcode_resolve(domain, info):
      if domain != "py":
          return None
      if not info["module"]:
          return None
      # only link to classes
      if "." in info["fullname"]:
          return None
      filename = info["module"].replace(".", "/") + ".py"
      return "https://github.com/webis-de/small-text/blob/v%s/%s" % (
          str(parse(version)),
          filename,
      )
  
imports: import sphinx_rtd_theme
  import os
  import sys
  from packaging.version import parse
  from small_text.version import __version__
label_desc: Use image node_id 1 for calling a global function with example usage: linkcode_resolve(domain, info) and returns: unknown, None, None, None