class_docstr: Base Class for GNN Benchmark dataset
  
  Reference: https://github.com/shchur/gnn-benchmark#datasets
class_docstr_tok: ["Base","Class","for","GNN","Benchmark","dataset","Reference",":","https",":","\/\/github.com\/shchur\/gnn-benchmark","#","datasets"]
docstr: Get graph by index
  
  Parameters
  ----------
  idx : int
      Item index
  
  Returns
  -------
  :class:`dgl.DGLGraph`
  
      The graph contains:
  
      - ``ndata['feat']``: node features
      - ``ndata['label']``: node labels
docstr_tok: ["Get","graph","by","index","Parameters","--","--","--","--","--","idx",":","int","Item","index","Returns","--","--","--","-",":","class",":","`","dgl.DGLGraph","`","The","graph","contains",":","-","``","ndata","[","'feat","'","]","``",":","node","features","-","``","ndata","[","'label","'","]","``",":","node","labels"]
code: def __getitem__(self, idx):
      r"""Get graph by index
  
      Parameters
      ----------
      idx : int
          Item index
  
      Returns
      -------
      :class:`dgl.DGLGraph`
  
          The graph contains:
  
          - ``ndata['feat']``: node features
          - ``ndata['label']``: node labels
      """
      assert idx == 0, "This dataset has only one graph"
      if self._transform is None:
          return self._graph
      else:
          return self._transform(self._graph)
  
imports: import os
  import numpy
  import scipy.sparse
  from ..None import backend, transforms
  from ..convert import graph
  from .dgl_dataset import DGLBuiltinDataset
  from .utils import _get_dgl_url, deprecate_class, deprecate_property, load_graphs, save_graphs
label_desc: Use image node_id 9 for calling the GNNBenchmarkDataset obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: self, self