<s> from libtree . utils import vectorize_nodes <EOL> def test_vectorize_nodes ( cur , root , nd2 , nd2_1 , nd2_1_1 ) : <EOL> nodes = [ nd2_1_1 , nd2 , root , nd2_1 ] <EOL> expected = [ root , nd2 , nd2_1 , nd2_1_1 ] <EOL> assert vectorize_nodes ( nodes ) == expected <EOL> assert vectorize_nodes ( * nodes ) == expected </s>
