code: def label(self, value):
          
          return self._labels.get(value) or text.pretty(self(value))
docs: Returns a pretty text version of the key for the inputted value.
  
          :param      value | <variant>
  
          :return     <str>