code: def get_version():
      version_file_path = os.path.join(current_file_path, "version.txt")
      with open(version_file_path, "r", encoding="utf-8") as f:
          version = f.read().strip()
  
      try:
          sha = (
              subprocess.check_output(["git", "rev-parse", "HEAD"])
              .decode("ascii")
              .strip()
          )
      except Exception:  # pylint: disable=broad-except
          sha = "Unknown"
  
      if os.getenv("POUTYNE_RELEASE_BUILD") != "1":
          version += ".dev1"
          if sha != "Unknown":
              version += "+" + sha[:7]
      return version
  
imports: import os
  import subprocess
  from setuptools import find_packages, setup
label_desc: Use image node_id 2 for calling a global function with example usage: get_version() and returns: version