code: def reinstall_breeze(breeze_sources: Path, re_run: bool = True):
      """
      Reinstalls Breeze from specified sources.
      :param breeze_sources: Sources where to install Breeze from.
      :param re_run: whether to re-run the original command that breeze was run with.
      """
      # Note that we cannot use `pipx upgrade` here because we sometimes install
      # Breeze from different sources than originally installed (i.e. when we reinstall airflow
      # From the current directory.
      get_console().print(
          f"\n[info]Reinstalling Breeze from {breeze_sources}\n"
      )
      subprocess.check_call(
          ["pipx", "install", "-e", str(breeze_sources), "--force"]
      )
      if re_run:
          # Make sure we don't loop forever if the metadata hash hasn't been updated yet (else it is tricky to
          # run pre-commit checks via breeze!)
          os.environ["SKIP_BREEZE_SELF_UPGRADE_CHECK"] = "true"
          os.execl(sys.executable, sys.executable, *sys.argv)
      get_console().print(
          f"\n[info]Breeze has been reinstalled from {breeze_sources}. Exiting now.[/]\n\n"
      )
      sys.exit(0)
  
file_path: airflow/dev/breeze/src/airflow_breeze/utils/reinstall.py
imports: from __future__ import annotations
  import os
  import subprocess
  import sys
  from pathlib import Path
  from airflow_breeze import NAME
  from airflow_breeze.utils.console import get_console
label_desc: Use image node_id 1 for calling a global function with example usage: reinstall_breeze(breeze_sources, re_run) without return types