code: def prepare_airflow_tarball(version: str):
      from packaging.version import Version
  
      airflow_version = Version(version)
      if not airflow_version.is_prerelease:
          exit("--version value must be a pre-release")
      source_date_epoch = get_source_date_epoch()
      version_without_rc = airflow_version.base_version
      # Create the tarball
      tarball_release(
          version=version,
          version_without_rc=version_without_rc,
          source_date_epoch=source_date_epoch,
      )
  
imports: from __future__ import annotations
  import os
  import shutil
  import click
  from airflow_breeze.commands.common_options import option_answer
  from airflow_breeze.commands.release_management_group import release_management
  from airflow_breeze.utils.confirm import confirm_action
  from airflow_breeze.utils.console import console_print
  from airflow_breeze.utils.path_utils import AIRFLOW_SOURCES_ROOT
  from airflow_breeze.utils.reproducible import archive_deterministically, get_source_date_epoch
  from airflow_breeze.utils.run_utils import run_command
label_desc: Use image node_id 18 for calling a global function with example usage: prepare_airflow_tarball(version) without return types