Treemap with several instances of same child

I am trying to make a treemap in plotly.js, but I get an error:
Failed to build treemap hierarchy of trace 0. Error: ambiguous: “name of duplicate label”.

In my head, I have no problem with duplicate labels across different parents. I just want the same label in two different and independent parents. What can I do to mitigate this problem?