def METHOD_NAME(cls):
    """Class decorator to mark a class as unpicklable."""
    def __getstate__(self):  # noqa: N807
        raise UnpicklableError(cls)
    cls.__getstate__ = __getstate__
    return cls