code: def _get_line_str(obj):
      source, line_number = inspect.getsourcelines(obj)
      line_str = "#L%d-L%d" % (
          line_number,
          line_number + len(source) - 1,
      )
      return line_str
  
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 7 for calling a global function with example usage: _get_line_str(obj) and returns: line_str