class_docstr: Class of graph data which is used for DGLGraph construction. Internal use only.
class_docstr_tok: ["Class","of","graph","data","which","is","used","for","DGLGraph","construction",".","Internal","use","only","."]
code: def __init__(self, graph_id, data):
      self.graph_id = np.array(graph_id)
      self.data = data
      _validate_data_length(
          {**{"graph_id": self.graph_id}, **self.data}
      )
  
imports: import ast
  import os
  from typing import Callable, List, Optional
  import numpy
  import pandas
  import pydantic
  import yaml
  from ..None import backend
  from ..base import dgl_warning, DGLError
  from ..convert import heterograph
label_desc: Use image node_id 1 to create a new GraphData object from inherited base classes: BaseData with example: obj = GraphData(graph_id, data)