code: def clean_build_directory():
      console.print("[bright_blue]Cleaning build directories\n")
      for egg_info_file in AIRFLOW_SOURCES_ROOT.glob("*egg-info*"):
          rmtree(egg_info_file, ignore_errors=True)
      rmtree(AIRFLOW_SOURCES_ROOT / "build", ignore_errors=True)
      console.print("[green]Cleaned build directories\n\n")
  
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 1 for calling a global function with example usage: clean_build_directory() without return types