code: def get_version():
      text = (project_dir / "src" / "dstack" / "version.py").read_text()
      match = re.compile(r"__version__\s*=\s*\"?([^\n\"]+)\"?.*").match(
          text
      )
      if match:
          if match.group(1) != "None":
              return match.group(1)
          else:
              return None
      else:
          sys.exit("Can't parse version.py")
  
imports: import re
  import sys
  from pathlib import Path
  from setuptools import find_packages, setup
label_desc: Use image node_id 1 for calling a global function with example usage: get_version() and returns: match, None