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","."]
docstr: Return the number of nodes in this node batch.
  
  Returns
  -------
  int
docstr_tok: ["Return","the","number","of","nodes","in","this","node","batch",".","Returns","--","--","--","-","int"]
code: def __len__(self):
      """Return the number of nodes in this node batch.
  
      Returns
      -------
      int
      """
      return self.batch_size()
  
file_path: dgl/python/dgl/udf.py
imports: from __future__ import absolute_import
label_desc: Use image node_id 6 for calling the NodeBatch obj's underlying member method code with example usage: obj.__len__() and returns: self