class_docstr: The WordNet18RR dataset from the `"Convolutional 2D Knowledge Graph
  Embeddings" <https://arxiv.org/abs/1707.01476>`_ paper, containing 40,943
  entities, 11 relations and 93,003 fact triplets.
  
  Args:
      root (str): Root directory where the dataset should be saved.
      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`)
      force_reload (bool, optional): Whether to re-process the dataset.
          (default: :obj:`False`)
class_docstr_tok: ["The","WordNet18RR","dataset","from","the","`","``","Convolutional","2D","Knowledge","Graph","Embeddings","''","<","https",":","\/\/arxiv.org\/abs\/1707.01476",">","`","_","paper",",","containing","40,943","entities",",","11","relations","and","93,003","fact","triplets",".","Args",":","root","(","str",")",":","Root","directory","where","the","dataset","should","be","saved",".","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","`",")","force_reload","(","bool",",","optional",")",":","Whether","to","re-process","the","dataset",".","(","default",":",":","obj",":","`","False","`",")"]
code: def __init__(
      self,
      root: str,
      transform: Optional[Callable] = None,
      pre_transform: Optional[Callable] = None,
      force_reload: bool = False,
  ) -> None:
      super().__init__(
          root, transform, pre_transform, force_reload=force_reload
      )
      self.load(self.processed_paths[0])
  
file_path: pytorch_geometric/torch_geometric/datasets/word_net.py
imports: from itertools import chain
  from typing import Callable, List, Optional
  import torch
  from torch_geometric.data import Data, InMemoryDataset, download_url
  from torch_geometric.utils import index_sort
label_desc: Use image node_id 1 to create a new WordNet18RR object from inherited base classes: InMemoryDataset with example: obj = WordNet18RR(root, transform, pre_transform, force_reload)