class_docstr: Object to hold the data to be stored for DGLGraph
class_docstr_tok: ["Object","to","hold","the","data","to","be","stored","for","DGLGraph"]
code: def create(g):
      edata_list = []
      ndata_list = []
      for etype in g.canonical_etypes:
          edata_list.append(
              tensor_dict_to_ndarray_dict(g.edges[etype].data)
          )
      for ntype in g.ntypes:
          ndata_list.append(
              tensor_dict_to_ndarray_dict(g.nodes[ntype].data)
          )
      return _CAPI_MakeHeteroGraphData(
          g._graph, ndata_list, edata_list, g.ntypes, g.etypes
      )
  
file_path: dgl/python/dgl/data/heterograph_serialize.py
imports: from __future__ import absolute_import
  from ..None import backend
  from .._ffi.function import _init_api
  from .._ffi.object import ObjectBase, register_object
  from ..container import convert_to_strmap
  from ..frame import Frame
  from ..heterograph import DGLGraph
label_desc: Use image node_id 1 for calling the HeteroGraphData obj's underlying member method code with example usage: obj.create(g) and returns: _CAPI_MakeHeteroGraphData