class_docstr: GraphData Object
docstr: Get DGLGraph from GraphData
docstr_tok: ["Get","DGLGraph","from","GraphData"]
code: def get_graph(self):
      """Get DGLGraph from GraphData"""
      ghandle = _CAPI_GDataGraphHandle(self)
      hgi = _CAPI_DGLAsHeteroGraph(ghandle)
      g = DGLGraph(hgi, ["_U"], ["_E"])
      node_tensors_items = _CAPI_GDataNodeTensors(self).items()
      edge_tensors_items = _CAPI_GDataEdgeTensors(self).items()
      for k, v in node_tensors_items:
          g.ndata[k] = F.zerocopy_from_dgl_ndarray(v)
      for k, v in edge_tensors_items:
          g.edata[k] = F.zerocopy_from_dgl_ndarray(v)
      return g
  
imports: from __future__ import absolute_import
  import os
  from ..None import backend
  from .._ffi.function import _init_api
  from .._ffi.object import ObjectBase, register_object
  from ..base import dgl_warning, DGLError
  from ..heterograph import DGLGraph
  from .heterograph_serialize import save_heterographs
label_desc: Use image node_id 2 for calling the GraphData obj's underlying member method code with example usage: obj.get_graph() and returns: g