writeChildren method called multiple times

I have some code that I’d like to iterate over and create the child node’s script multiple times. However, calling writer.writeChildren() multiple times puts duplicate labels into the script, and subsequently the program doesn’t run. The API documentation claims you CAN call writeChildren multiple times. Anyone experience this?

Confirmed with UR the documentation is wrong and you cannot call writeChildren multiple times.