def METHOD_NAME(newlist, sources):
    for elem in sources:
        if is_Sequence(elem):
            METHOD_NAME(newlist, elem)
        elif isinstance(elem, Node):
            newlist.append(elem)
        else:
            newlist.append(Value(elem))