<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_dict(self):
 """Converts the set of values into a dictionary. Unset values are excluded."""

        return {value.label: value.value for value in self.__values if not value.unset}