Used in https://github.com/mhenc/airflow/blob/master/airflow/dag_processing/manager.py#L613

should be straighforward
#
#
from __future__ import annotations
import functools
import json
import logging
from typing import Any, Callable
from flask import Response
from airflow.api_connexion.types import APIResponse
from airflow.models import Variable, XCom
from airflow.serialization.serialized_objects import BaseSerialization
log = logging.getLogger(__name__)
@functools.lru_cache()
def _initialize_map() -> dict[str, Callable]: