def _get_shared_mem_edata(g, graph_name, name):
    """Get shared-memory edge data from DistGraph server.

    This is called by the DistGraph client to access the edge data in the DistGraph server
    with shared memory.
    """
    shape = (g.num_edges(),)
    dtype = RESERVED_FIELD_DTYPE[name]
    dtype = DTYPE_DICT[dtype]
    data = empty_shared_mem(
        _get_edata_path(graph_name, name), False, shape, dtype
    )
    dlpack = data.to_dlpack()
    return F.zerocopy_from_dlpack(dlpack)
Get shared-memory edge data from DistGraph server.

    This is called by the DistGraph client to access the edge data in the DistGraph server
    with shared memory.
    
python/dgl/distributed/dist_graph.py