code: def git_tag():
      try:
          return subprocess.check_output(
              [git, "-C", script_path, "describe", "--tags"],
              shell=False,
              encoding="utf8",
          ).strip()
      except Exception:
          try:
              changelog_md = os.path.join(
                  os.path.dirname(os.path.dirname(__file__)),
                  "CHANGELOG.md",
              )
              with open(changelog_md, "r", encoding="utf-8") as file:
                  line = next(
                      (line.strip() for line in file if line.strip()),
                      "<none>",
                  )
                  line = line.replace("## ", "")
                  return line
          except Exception:
              return "<none>"
  
imports: import logging
  import re
  import subprocess
  import os
  import shutil
  import sys
  import importlib.util
  import importlib.metadata
  import platform
  import json
  from functools import lru_cache
  from modules import cmd_args, errors
  from modules.paths_internal import script_path, extensions_dir
  from modules.timer import startup_timer
  from modules import logging_config
label_desc: Use image node_id 3 for calling a global function with example usage: git_tag() and returns: subprocess, line, str