code: def download_constraints_file(
      airflow_version: str,
      python_version: str,
      include_provider_dependencies: bool,
      output_file: Path,
  ) -> bool:
      """
      Downloads constraints file from GitHub repository of Apache Airflow
  
      :param airflow_version: airflow version
      :param python_version: python version
      :param include_provider_dependencies: whether to include provider dependencies
      :param output_file: the file where to store the constraint file
      :return: true if the file was successfully downloaded
      """
      if include_provider_dependencies:
          constraints_file_path = f"constraints-{python_version}.txt"
      else:
          constraints_file_path = (
              f"constraints-no-providers-{python_version}.txt"
          )
      constraints_tag = f"constraints-{airflow_version}"
      return download_file_from_github(
          tag=constraints_tag,
          path=constraints_file_path,
          output_file=output_file,
      )
  
file_path: airflow/dev/breeze/src/airflow_breeze/utils/github.py
imports: from __future__ import annotations
  import re
  import sys
  from datetime import datetime
  from pathlib import Path
  from typing import Any
  from rich.markup import escape
  from airflow_breeze.utils.confirm import Answer, user_confirm
  from airflow_breeze.utils.console import get_console
  from airflow_breeze.utils.path_utils import AIRFLOW_SOURCES_ROOT
  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: download_constraints_file(airflow_version, python_version, include_provider_dependencies, output_file) and returns: download_file_from_github