code: def find_provider_packages(
      extension: str, selected_providers: list[str]
  ) -> list[str]:
      candidates = list(
          DIST_FOLDER.glob(f"apache_airflow_providers_*.{extension}")
      )
      console.print(
          "\n[bright_blue]Found the following provider packages: "
      )
      for candidate in sorted(candidates):
          console.print(f"  {candidate.as_posix()}")
      console.print()
      if selected_providers:
          candidates = [
              candidate
              for candidate in candidates
              if get_provider_name(candidate.name) in selected_providers
          ]
          console.print("[bright_blue]Selected provider packages:")
          for candidate in sorted(candidates):
              console.print(f"  {candidate.as_posix()}")
          console.print()
      return [candidate.as_posix() for candidate in candidates]
  
file_path: airflow/scripts/in_container/install_airflow_and_providers.py
imports: from __future__ import annotations
  import re
  import sys
  from pathlib import Path
  from typing import NamedTuple
  from in_container_utils import click, console, run_command
label_desc: Use image node_id 4 for calling a global function with example usage: find_provider_packages(extension, selected_providers) and returns: unknown