def METHOD_NAME(type_encoders: TypeEncodersMap | None = None) -> Serializer:
    """Get the serializer for the given type encoders."""
    if type_encoders:
        return partial(default_serializer, type_encoders=type_encoders)
    return default_serializer