code: def get_current_airflow_version() -> str:
      console.print("[bright_blue]Checking airflow version\n")
      airflow_version = subprocess.check_output(
          [sys.executable, "-m", "hatch", "version"],
          text=True,
          cwd=AIRFLOW_SOURCES_ROOT,
      ).strip()
      console.print(f"[green]Airflow version: {airflow_version}\n")
      return airflow_version
  
file_path: airflow/scripts/in_container/run_prepare_airflow_packages.py
imports: from __future__ import annotations
  import os
  import re
  import subprocess
  import sys
  from contextlib import contextmanager
  from pathlib import Path
  from shutil import rmtree
  import yaml
  from rich.console import Console
label_desc: Use image node_id 3 for calling a global function with example usage: get_current_airflow_version() and returns: airflow_version