code: def _provider_mapper(provider: ProviderInfo) -> Provider:
      return Provider(
          package_name=provider.data["package-name"],
          description=_remove_rst_syntax(provider.data["description"]),
          version=provider.version,
      )
  
file_path: airflow/airflow/api_connexion/endpoints/provider_endpoint.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  import re2
  from airflow.api_connexion import security
  from airflow.api_connexion.schemas.provider_schema import Provider, ProviderCollection, provider_collection_schema
  from airflow.auth.managers.models.resource_details import AccessView
  from airflow.providers_manager import ProvidersManager
label_desc: Use image node_id 2 for calling a global function with example usage: _provider_mapper(provider) and returns: Provider