class_docstr: A NodeView class to act as G.nodes for a DGLGraph.
class_docstr_tok: ["A","NodeView","class","to","act","as","G.nodes","for","a","DGLGraph","."]
docstr: Return the nodes.
docstr_tok: ["Return","the","nodes","."]
code: def __call__(self, ntype=None):
      """Return the nodes."""
      ntid = self._typeid_getter(ntype)
      ret = F.arange(
          0,
          self._graph._graph.num_nodes(ntid),
          dtype=self._graph.idtype,
          ctx=self._graph.device,
      )
      return ret
  
imports: from __future__ import absolute_import
  from collections import defaultdict, namedtuple
  from collections.abc import MutableMapping
  from .None import backend
  from .base import ALL, DGLError
  from .frame import LazyFeature
label_desc: Use image node_id 3 for calling the HeteroNodeView obj's underlying member method code with example usage: obj.__call__(ntype) and returns: ret