code: def generate_constraints_source_providers(
      config_params: ConfigParams,
  ) -> None:
      """
      Generates constraints with provider dependencies used from current sources. This might be different
      from the constraints generated from the latest released version of the providers in PyPI. Those
      constraints are used in CI builds when we install providers built using current sources and in
      Breeze CI image builds.
      """
      with config_params.current_constraints_file.open(
          "w"
      ) as constraints_file:
          constraints_file.write(SOURCE_PROVIDERS_CONSTRAINTS_PREFIX)
          freeze_packages_to_file(config_params, constraints_file)
      download_latest_constraint_file(config_params)
      diff_constraints(config_params)
  
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 7 for calling a global function with example usage: generate_constraints_source_providers(config_params) without return types