code: def get_provider_name(package_name: str) -> str:
      return ".".join(
          package_name.split("-")[0]
          .replace("apache_airflow_providers_", "")
          .split("_")
      )
  
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 1 for calling a global function with example usage: get_provider_name(package_name) and returns: str