code: def check_docker_compose_version(quiet: bool = False):
      """Checks if the docker compose version is as expected.
  
      This includes specific modifications done by some vendors such as Microsoft.
      They might have modified version of docker-compose/docker in their cloud. In
      the case the docker compose version is wrong, we continue but print a
      warning for the user.
      """
      version_pattern = re.compile(r"(\d+)\.(\d+)\.(\d+)")
      docker_compose_version_command = ["docker", "compose", "version"]
      try:
          docker_compose_version_result = run_command(
              docker_compose_version_command,
              no_output_dump_on_exception=True,
              capture_output=True,
              text=True,
              dry_run_override=False,
          )
      except Exception:
          get_console().print(
              "[error]You either do not have docker-composer or have docker-compose v1 installed.[/]\n"
              "[warning]Breeze does not support docker-compose v1 any more as it has been replaced by v2.[/]\n"
              "Follow https://docs.docker.com/compose/migrate/ to migrate to v2"
          )
          sys.exit(1)
      if docker_compose_version_result.returncode == 0:
          docker_compose_version = docker_compose_version_result.stdout
          version_extracted = version_pattern.search(
              docker_compose_version
          )
          if version_extracted is not None:
              docker_compose_version = ".".join(
                  version_extracted.groups()
              )
              good_version = compare_version(
                  docker_compose_version, MIN_DOCKER_COMPOSE_VERSION
              )
              if good_version:
                  if not quiet:
                      get_console().print(
                          f"[success]Good version of docker-compose: {docker_compose_version}[/]"
                      )
              else:
                  get_console().print(
                      f"""
  [error]You have too old version of docker-compose: {docker_compose_version}!\n[/]
  [warning]At least {MIN_DOCKER_COMPOSE_VERSION} needed! Please upgrade!\n[/]
  See https://docs.docker.com/compose/install/ for installation instructions.\n
  Make sure docker-compose you install is first on the PATH variable of yours.\n
  """
                  )
                  sys.exit(1)
      else:
          get_console().print(
              f"""
  [error]Unknown docker-compose version.[/]
  [warning]At least {MIN_DOCKER_COMPOSE_VERSION} needed! Please upgrade!\n[/]
  See https://docs.docker.com/compose/install/ for installation instructions.\n
  Make sure docker-compose you install is first on the PATH variable of yours.\n
  """
          )
          sys.exit(1)
  
imports: from __future__ import annotations
  import copy
  import json
  import os
  import re
  import sys
  from subprocess import DEVNULL, CalledProcessError, CompletedProcess
  from typing import TYPE_CHECKING
  from airflow_breeze.params.build_prod_params import BuildProdParams
  from airflow_breeze.utils.cache import read_from_cache_file
  from airflow_breeze.utils.host_info_utils import get_host_group_id, get_host_os, get_host_user_id
  from airflow_breeze.utils.path_utils import AIRFLOW_SOURCES_ROOT, SCRIPTS_DOCKER_DIR, cleanup_python_generated_files, create_mypy_volume_if_needed
  from airflow_breeze.utils.shared_options import get_verbose
  from airflow_breeze.utils.visuals import ASCIIART, ASCIIART_STYLE, CHEATSHEET, CHEATSHEET_STYLE
  from airflow_breeze.global_constants import ALLOWED_CELERY_BROKERS, ALLOWED_DEBIAN_VERSIONS, DEFAULT_PYTHON_MAJOR_MINOR_VERSION, DOCKER_DEFAULT_PLATFORM, MIN_DOCKER_COMPOSE_VERSION, MIN_DOCKER_VERSION, SEQUENTIAL_EXECUTOR
  from airflow_breeze.utils.console import Output, get_console
  from airflow_breeze.utils.run_utils import RunCommandResult, check_if_buildx_plugin_installed, run_command
label_desc: Use image node_id 7 for calling a global function with example usage: check_docker_compose_version(quiet) without return types