def label_func(s, label=label):
                self.set_label(s, label)
def serialize(self, value, display=False):
        if value.lower() in log.COLORS:
            return encode(value.lower())
        return ""