class_docstr: The class to represent a batch of nodes.
  
  Parameters
  ----------
  graph : DGLGraph
      Graph object.
  nodes : Tensor
      Node ids.
  ntype : str, optional
      The node type of this node batch,
  data : dict[str, Tensor]
      Node feature data.
  msgs : dict[str, Tensor], optional
      Messages data.
class_docstr_tok: ["The","class","to","represent","a","batch","of","nodes",".","Parameters","--","--","--","--","--","graph",":","DGLGraph","Graph","object",".","nodes",":","Tensor","Node","ids",".","ntype",":","str",",","optional","The","node","type","of","this","node","batch",",","data",":","dict","[","str",",","Tensor","]","Node","feature","data",".","msgs",":","dict","[","str",",","Tensor","]",",","optional","Messages","data","."]
code: def __init__(self, graph, nodes, ntype, data, msgs=None):
      self._graph = graph
      self._nodes = nodes
      self._ntype = ntype
      self._data = data
      self._msgs = msgs
  
file_path: dgl/python/dgl/udf.py
imports: from __future__ import absolute_import
label_desc: Use image node_id 1 to create a new NodeBatch object from inherited base classes: object with example: obj = NodeBatch(graph, nodes, ntype, data, msgs)