How to copy a graph?

I would like to copy a DGLHeteroGraph instance, without copying the tensor edata&ndata (only graph structure), how can I achieve this?

Could this solve your problem https://docs.dgl.ai/generated/dgl.DGLHeteroGraph.local_var.html?

Since currently HeteroGraph is immutable, why would like to have another copy?