def shortLabel(label):
    # create a log friendly string representation of a lbel
    if label is None: # it happens
        return ''

    if '}' in label.type_:
        name = label.type_.split('}',1)[1]
    elif '#' in label.type_:
        name = label.type_.split('#',1)[1]
    else:
        name = label.type_
    return name + '=' + label.labelValue()
dataset/ETHPy150Open NORDUnet/opennsa/opennsa/aggregator.py/shortLabel/original