def METHOD_NAME() -> Serializer:
    """Get the default serializer.
    Returns
    -------
    The default serializer.
    """
    if _default_serializer is None:
        set_default_serializer(TorchSerializer())
    return cast(Serializer, _default_serializer)