How to copy Nodes using id?

Update: I found the answer to that here: How to programmatically use logical operator add function from segment editor? - #2 by mikebind