def METHOD_NAME(type: Any) -> Callable[[Type[K]], Type[K]]:
    """A wrapper that adds the wrapped Serializer to the Serializer registry (see above) for the key `type`."""
    def wrapped(cls: Type[K]) -> Type[K]:
        registry[type] = cls()
        return cls
    return wrapped