def __init__(self, type_, values=None):

        assert type(values) in (None, str, list), 'Type of Label values must be a None, str, or list. Was given %s' % type(values)

        self.type_ = type_
        self.values = self._parseLabelValues(values) if values is not None else None
dataset/ETHPy150Open NORDUnet/opennsa/opennsa/nsa.py/Label.__init__/original