def METHOD_NAME(label, uri, dictionary):
    if type(label) is str:
        if label in dictionary:
            if uri not in dictionary[label]:
                dictionary[label].append(uri)
        else:
            dictionary[label] = [uri]
        return dictionary
    elif type(label) is list:
        for l in label:
            if l in dictionary:
                if uri not in dictionary[l]:
                    dictionary[l].append(uri)
            else:
                dictionary[l] = [uri]
        return dictionary