code: def get_common_sql_constraints(provider_metadata: dict) -> str | None:
      """Return the version constraints of `apache-airflow-providers-common-sql`."""
      dependencies: list[str] = provider_metadata["dependencies"]
      for dependency in dependencies:
          if dependency.startswith(COMMON_SQL_PROVIDER_NAME):
              return dependency[len(COMMON_SQL_PROVIDER_NAME) :]
      return None
  
file_path: airflow/scripts/ci/pre_commit/pre_commit_check_common_sql_dependency.py
imports: from __future__ import annotations
  import ast
  import pathlib
  import sys
  from typing import Iterable
  import yaml
  from packaging.specifiers import SpecifierSet
  from rich.console import Console
label_desc: Use image node_id 6 for calling a global function with example usage: get_common_sql_constraints(provider_metadata) and returns: None, dependency