class_docstr: Graph Dataloader
      
class_docstr_tok: ["Graph","Dataloader"]
docstr: __getitem__
docstr_tok: ["__getitem__"]
code: def __getitem__(self, idx):
      """__getitem__"""
      if isinstance(idx, collections.Iterable):
          return [self.dataset[bidx] for bidx in idx]
      else:
          return self.dataset[idx]
  
file_path: PGL/legacy/examples/SAGPool/dataloader.py
imports: import numpy
  import collections
  import paddle
  import pgl
  from pgl.utils.logger import log
  from pgl.graph import Graph, MultiGraph
label_desc: Use image node_id 5 for calling the GraphDataloader obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: unknown, self