Is there discussion about adding this as a public API? It would be very useful for pytorch datalaoders with nested data structures. You want them to live forever, and the reference counting wrecks copy-on-write havoc.
EDIT: I see a discussion here: Exposing public APIs for immortal objects