code: def _get_obj(info):
      module_name = info["module"]
      full_name = info["fullname"]
      sub_module = sys.modules.get(module_name)
      obj = sub_module
      for part in full_name.split("."):
          obj = getattr(obj, part)
      # strip decorators, which would resolve to the source of the decorator
      obj = inspect.unwrap(obj)
      return obj
  
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 5 for calling a global function with example usage: _get_obj(info) and returns: obj