code: def find_airflow_package(extension: str) -> str | None:
      packages = [
          f.as_posix()
          for f in DIST_FOLDER.glob(
              f"apache_airflow-[0-9]*.{extension}"
          )
      ]
      if len(packages) > 1:
          console.print(
              f"\n[red]Found multiple airflow packages: {packages}\n"
          )
          sys.exit(1)
      elif len(packages) == 0:
          console.print("\n[red]No airflow package found\n")
          sys.exit(1)
      airflow_package = packages[0] if packages else None
      if airflow_package:
          console.print(
              f"\n[bright_blue]Found airflow package: {airflow_package}\n"
          )
      else:
          console.print("\n[yellow]No airflow package found.\n")
      return airflow_package
  
file_path: airflow/scripts/in_container/install_airflow_and_providers.py
imports: from __future__ import annotations
  import re
  import sys
  from pathlib import Path
  from typing import NamedTuple
  from in_container_utils import click, console, run_command
label_desc: Use image node_id 3 for calling a global function with example usage: find_airflow_package(extension) and returns: airflow_package