def METHOD_NAME(cls) -> dict[Any, Callable[[Any], Any]]:
    if pydantic.VERSION.startswith("1"):  # pragma: no cover
        return {**_base_encoders, **cls._create_pydantic_v1_encoders()}
    return {**_base_encoders, **cls._create_pydantic_v2_encoders()}