code: def remove_packages_missing_on_arm():
      console.print("[bright_blue]Removing packages missing on ARM.")
      provider_dependencies = json.loads(
          (
              AIRFLOW_SOURCES_ROOT
              / "generated"
              / "provider_dependencies.json"
          ).read_text()
      )
      all_dependencies_to_remove = []
      for provider in provider_dependencies:
          for dependency in provider_dependencies[provider]["deps"]:
              if 'platform_machine != "aarch64"' in dependency:
                  all_dependencies_to_remove.append(
                      re.split(r"[~<>=;]", dependency)[0]
                  )
      console.print(
          "\n[bright_blue]Uninstalling ARM-incompatible libraries "
          + " ".join(all_dependencies_to_remove)
          + "\n"
      )
      subprocess.run(
          ["pip", "uninstall", "-y"] + all_dependencies_to_remove
      )
  
imports: from __future__ import annotations
  import json
  import re
  import subprocess
  from pathlib import Path
  from rich.console import Console
label_desc: Use image node_id 1 for calling a global function with example usage: remove_packages_missing_on_arm() without return types