code: def _get_file_name(obj):
      try:
          file_name = inspect.getsourcefile(obj)
          file_name = os.path.relpath(
              file_name, start=os.path.dirname(torchmetrics.__file__)
          )
      except TypeError:  # This seems to happen when obj is a property
          file_name = None
      return file_name
  
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 6 for calling a global function with example usage: _get_file_name(obj) and returns: file_name