def unique_value(name):
    """Creates a unique value with the given name. The value has its own class, of which it is the only instance."""
    class _UniqueClass:
        def __str__(self):
            return name
        def __repr__(self):
            return name
    _UniqueClass.__name__ = name
    return _UniqueClass()