code: def generate_constraints(
      airflow_constraints_mode: str,
      chicken_egg_providers: str,
      constraints_github_repository: str,
      default_constraints_branch: str,
      eager_upgrade_additional_requirements: str,
      github_actions: bool,
      python: str,
  ) -> None:
      config_params = ConfigParams(
          airflow_constraints_mode=airflow_constraints_mode,
          chicken_egg_providers=chicken_egg_providers,
          constraints_github_repository=constraints_github_repository,
          default_constraints_branch=default_constraints_branch,
          eager_upgrade_additional_requirements=eager_upgrade_additional_requirements,
          github_actions=github_actions,
          python=python,
      )
      if airflow_constraints_mode == "constraints-source-providers":
          generate_constraints_source_providers(config_params)
      elif airflow_constraints_mode == "constraints":
          generate_constraints_pypi_providers(config_params)
      elif airflow_constraints_mode == "constraints-no-providers":
          generate_constraints_no_providers(config_params)
      else:
          console.print(
              f"[red]Unknown constraints mode: {airflow_constraints_mode}"
          )
          sys.exit(1)
      console.print("[green]Generated constraints:")
      files = config_params.constraints_dir.rglob("*.txt")
      for file in files:
          console.print(file.as_posix())
      console.print()
  
imports: from __future__ import annotations
  import json
  import os
  import sys
  from dataclasses import dataclass
  from datetime import datetime
  from functools import cached_property
  from pathlib import Path
  from typing import TextIO
  import requests
  from click import Choice
  from in_container_utils import click, console, run_command
label_desc: Use image node_id 10 for calling a global function with example usage: generate_constraints(airflow_constraints_mode, chicken_egg_providers, constraints_github_repository, default_constraints_branch, eager_upgrade_additional_requirements, github_actions, python) without return types