code: def sub_proc(hg_origin, name):
      hg_rebuild = dgl.hetero_from_shared_memory(name)
      hg_save_again = hg_rebuild.shared_memory(name)
      _assert_is_identical_hetero(hg_origin, hg_rebuild)
      _assert_is_identical_hetero(hg_origin, hg_save_again)
  
file_path: dgl/tests/python/common/test_heterograph-shared-memory.py
imports: import io
  import multiprocessing
  import os
  import pickle
  import unittest
  import backend
  import dgl
  import dgl.function
  import networkx
  import scipy.sparse
  from dgl.graph_index import create_graph_index
  from dgl.utils import toindex
  from utils import parametrize_idtype
label_desc: Use image node_id 4 for calling a global function with example usage: sub_proc(hg_origin, name) without return types