code: def check_for_rosetta_environment():
      if sys.platform != "darwin" or platform.processor() == "i386":
          return
  
      from inputimeout import TimeoutOccurred, inputimeout
  
      try:
          runs_in_rosetta = subprocess.check_output(
              ["sysctl", "-n", "sysctl.proc_translated"],
              text=True,
              stderr=subprocess.DEVNULL,
          ).strip()
          if runs_in_rosetta == "1":
              from airflow_breeze.utils.console import get_console
  
              get_console().print(
                  "\n\n[error]You are starting breeze in `rosetta 2` emulated environment on Mac[/]\n"
              )
              get_console().print(
                  "[warning]This is very bad and your Python is 10x slower as it is emulated[/]\n"
              )
              get_console().print(
                  "You have emulated Python interpreter (Intel rather than ARM). You should check:\n\n"
                  '  * Your IDE (PyCharm/VSCode/Intellij): the "About" window should show `aarch64` '
                  'not `x86_64` in "Runtime version".\n'
                  '  * Your python: run  "python -c '
                  'import platform; print(platform.uname().machine)"). '
                  "It should show `arm64` not `x86_64`.\n"
                  '  * Your `brew`: run "brew config" and it should show `arm` in CPU line not `x86`.\n\n'
                  "If you have mixed Intel/ARM binaries installed you should likely nuke and "
                  "reinstall your development environment (including brew and Python) from scratch!\n\n"
              )
  
              user_status = inputimeout(
                  prompt="Are you REALLY sure you want to continue? (answer with y otherwise we exit in 20s)\n",
                  timeout=20,
              )
              if user_status.upper() not in ["Y", "YES"]:
                  sys.exit(1)
      except TimeoutOccurred:
          get_console().print("\nNo answer, exiting...")
          sys.exit(1)
      except subprocess.CalledProcessError:
          pass
      except PermissionError:
          pass
  
imports: from __future__ import annotations
  import platform
  import shutil
  import subprocess
  import sys
  from typing import TYPE_CHECKING, Any
  from airflow_breeze.commands.ci_image_commands import ci_image
  from airflow_breeze.commands.common_options import option_answer, option_backend, option_builder, option_database_isolation, option_db_reset, option_docker_host, option_dry_run, option_forward_credentials, option_github_repository, option_integration, option_max_time, option_mysql_version, option_postgres_version, option_project_name, option_python, option_standalone_dag_processor, option_verbose
  from airflow_breeze.commands.production_image_commands import prod_image
  from airflow_breeze.commands.testing_commands import group_for_testing
  from airflow_breeze.configure_rich_click import click
  from airflow_breeze.utils.click_utils import BreezeGroup
  from airflow_breeze.utils.confirm import Answer, user_confirm
  from airflow_breeze.utils.console import get_console
  from airflow_breeze.utils.docker_command_utils import remove_docker_networks
  from airflow_breeze.utils.path_utils import BUILD_CACHE_DIR
  from airflow_breeze.utils.run_utils import run_command
  from airflow_breeze.utils.shared_options import get_dry_run
label_desc: Use image node_id 4 for calling a global function with example usage: check_for_rosetta_environment() without return types