<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def setLabel(self, value, label):
 """ Sets the label text for the inputted value. This will override the default pretty text label that is used for the key. :param value | <variant> label | <str> """

        if label:
            self._labels[value] = label
        else:
            self._labels.pop(value, None)