"""Auto-generated stub for module: compat."""
from typing import Any, Callable

# Functions
def ensure_metric_functions(metric_functions: Any[str, Any]) -> dict[str, Any]:
    """
    Ensure formatter-required keys exist with safe defaults.
    """
    ...
def make_legacy_split_evaluator(legacy_get_metrics: Callable[..., Any], **extra_kwargs: Any) -> Callable[[str, Any], Any]:
    """
    Wrap legacy get_metrics function into a split callback signature.
    
        The returned callable matches: ``fn(split, loader) -> payload``.
    """
    ...
