code: def _get_version_str():
      if any(s in torchmetrics.__version__ for s in ("dev", "rc")):
          version_str = "master"
      else:
          version_str = f"v{torchmetrics.__version__}"
      return version_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 8 for calling a global function with example usage: _get_version_str() and returns: version_str