<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def label(self, value):
 """ Returns a pretty text version of the key for the inputted value. :param value | <variant> :return <str> """

        return self._labels.get(value) or text.pretty(self(value))