class_docstr: A variety of graph datasets collected from `SNAP at Stanford University
  <https://snap.stanford.edu/data>`_.
  
  Args:
      root (str): Root directory where the dataset should be saved.
      name (str): The name of the dataset.
      transform (callable, optional): A function/transform that takes in an
          :obj:`torch_geometric.data.Data` object and returns a transformed
          version. The data object will be transformed before every access.
          (default: :obj:`None`)
      pre_transform (callable, optional): A function/transform that takes in
          an :obj:`torch_geometric.data.Data` object and returns a
          transformed version. The data object will be transformed before
          being saved to disk. (default: :obj:`None`)
      pre_filter (callable, optional): A function that takes in an
          :obj:`torch_geometric.data.Data` object and returns a boolean
          value, indicating whether the data object should be included in the
          final dataset. (default: :obj:`None`)
      force_reload (bool, optional): Whether to re-process the dataset.
          (default: :obj:`False`)
code: def __init__(
      self,
      root: str,
      name: str,
      transform: Optional[Callable] = None,
      pre_transform: Optional[Callable] = None,
      pre_filter: Optional[Callable] = None,
      force_reload: bool = False,
  ) -> None:
      self.name = name.lower()
      assert self.name in self.available_datasets.keys()
      super().__init__(
          root,
          transform,
          pre_transform,
          pre_filter,
          force_reload=force_reload,
      )
      self.load(self.processed_paths[0])
  
imports: import os
  import os.path
  from typing import Any, Callable, Dict, List, Optional, Union
  import fsspec
  import numpy
  import torch
  from torch_geometric.data import Data, InMemoryDataset
  from torch_geometric.io import fs
  from torch_geometric.utils import coalesce
label_desc: Use image node_id 1 to create a new SNAPDataset object from inherited base classes: InMemoryDataset with example: obj = SNAPDataset(root, name, transform, pre_transform, pre_filter, force_reload)