code: def get_version():
      import subprocess
  
      git_out = subprocess.Popen(
          ["git", "describe", "--abbrev=0", "--tags"],
          stdout=subprocess.PIPE,
          stderr=subprocess.PIPE,
      )
      stdout, stderr = git_out.communicate()
      version = "0+unknown"
      if len(stderr.decode()) == 0:
          version = stdout.split()[0].decode()
          version = version.replace("v", "")
      return version
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_version() and returns: version