def METHOD_NAME(ntree, nodelist):
    nodes = ntree.nodes
    for i in nodes:
        i.select = False
    a = [x for x in nodes if x not in nodelist]
    # print ("odd nodes:",a)
    for i in a:
        i.select = True