class_docstr: Class of node data which is used for DGLGraph construction. Internal use only.
class_docstr_tok: ["Class","of","node","data","which","is","used","for","DGLGraph","construction",".","Internal","use","only","."]
code: def __init__(self, node_id, data, type=None, graph_id=None):
      self.id = np.array(node_id)
      self.data = data
      self.type = type if type is not None else "_V"
      self.graph_id = (
          np.array(graph_id)
          if graph_id is not None
          else np.full(len(node_id), 0)
      )
      _validate_data_length(
          {**{"id": self.id, "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 NodeData object from inherited base classes: BaseData with example: obj = NodeData(node_id, data, type, graph_id)