code: def linkcode_resolve(domain, info):
      # try to find the file and line number, based on code from numpy:
      # https://github.com/numpy/numpy/blob/master/doc/source/conf.py#L424
  
      if domain != "py" or not info["module"]:
          return None
  
      obj = _get_obj(info)
      file_name = _get_file_name(obj)
  
      if not file_name:
          return None
  
      line_str = _get_line_str(obj)
      version_str = _get_version_str()
  
      link = f"https://github.com/{github_user}/{github_repo}/blob/{version_str}/src/torchmetrics/{file_name}{line_str}"
      return link
  
file_path: torchmetrics/docs/source/conf.py
imports: import glob
  import inspect
  import os
  import re
  import shutil
  import sys
  import lai_sphinx_theme
  from lightning_utilities.docs import fetch_external_assets
  from lightning_utilities.docs.formatting import _transform_changelog
  import torchmetrics
label_desc: Use image node_id 4 for calling a global function with example usage: linkcode_resolve(domain, info) and returns: link, None, None