code: def linkcode_resolve(domain: str, info: dict[str, Any]) -> str | None:
      """
      Determine the URL corresponding to Python object.
  
      Based on pandas equivalent:
      https://github.com/pandas-dev/pandas/blob/main/doc/source/conf.py#L629-L686
      """
      if domain != "py":
          return None
  
      modname = info["module"]
      fullname = info["fullname"]
  
      submod = sys.modules.get(modname)
      if submod is None:
          return None
  
      obj = submod
      for part in fullname.split("."):
          try:
              with warnings.catch_warnings():
                  # Accessing deprecated objects will generate noisy warnings
                  warnings.simplefilter("ignore", FutureWarning)
                  obj = getattr(obj, part)
          except AttributeError:
              return None
  
      try:
          fn = inspect.getsourcefile(inspect.unwrap(obj))
      except TypeError:
          try:  # property
              fn = inspect.getsourcefile(inspect.unwrap(obj.fget))
          except (AttributeError, TypeError):
              fn = None
      if not fn:
          return None
  
      try:
          source, lineno = inspect.getsourcelines(obj)
      except TypeError:
          try:  # property
              source, lineno = inspect.getsourcelines(obj.fget)
          except (AttributeError, TypeError):
              lineno = None
      except OSError:
          lineno = None
  
      linespec = (
          f"#L{lineno}-L{lineno + len(source) - 1}" if lineno else ""
      )
  
      conf_dir_path = Path(__file__).absolute().parent
      polars_root = (conf_dir_path.parent.parent / "polars").absolute()
  
      fn = os.path.relpath(fn, start=polars_root)
      return f"{github_root}/blob/{git_ref}/py-polars/polars/{fn}{linespec}"
  
file_path: polars/py-polars/docs/source/conf.py
imports: from __future__ import annotations
  import inspect
  import os
  import re
  import sys
  import warnings
  from pathlib import Path
  from typing import Any
  import sphinx_autosummary_accessors
label_desc: Use image node_id 1 for calling a global function with example usage: linkcode_resolve(domain, info) and returns: github_root, str, git_ref, str, fn, linespec, None, None, None, None