class_docstr: Base Class For making datasets which are compatible with torchvision.
  It is necessary to override the ``__getitem__`` and ``__len__`` method.
  
  Args:
      root (string, optional): Root directory of dataset. Only used for `__repr__`.
      transforms (callable, optional): A function/transforms that takes in
          an image and a label and returns the transformed versions of both.
      transform (callable, optional): A function/transform that takes in a PIL image
          and returns a transformed version. E.g, ``transforms.RandomCrop``
      target_transform (callable, optional): A function/transform that takes in the
          target and transforms it.
  
  .. note::
  
      :attr:`transforms` and the combination of :attr:`transform` and :attr:`target_transform` are mutually exclusive.
class_docstr_tok: ["Base","Class","For","making","datasets","which","are","compatible","with","torchvision",".","It","is","necessary","to","override","the","``","__getitem__","``","and","``","__len__","``","method",".","Args",":","root","(","string",",","optional",")",":","Root","directory","of","dataset",".","Only","used","for","`","__repr__","`",".","transforms","(","callable",",","optional",")",":","A","function\/transforms","that","takes","in","an","image","and","a","label","and","returns","the","transformed","versions","of","both",".","transform","(","callable",",","optional",")",":","A","function\/transform","that","takes","in","a","PIL","image","and","returns","a","transformed","version",".","E.g",",","``","transforms.RandomCrop","``","target_transform","(","callable",",","optional",")",":","A","function\/transform","that","takes","in","the","target","and","transforms","it",".","..","note",":",":",":","attr",":","`","transforms","`","and","the","combination","of",":","attr",":","`","transform","`","and",":","attr",":","`","target_transform","`","are","mutually","exclusive","."]
docstr: Args:
      index (int): Index
  
  Returns:
      (Any): Sample and meta data, optionally transformed by the respective transforms.
docstr_tok: ["Args",":","index","(","int",")",":","Index","Returns",":","(","Any",")",":","Sample","and","meta","data",",","optionally","transformed","by","the","respective","transforms","."]
code: def __getitem__(self, index: int) -> Any:
      """
      Args:
          index (int): Index
  
      Returns:
          (Any): Sample and meta data, optionally transformed by the respective transforms.
      """
      raise NotImplementedError
  
file_path: vision/torchvision/datasets/vision.py
imports: import os
  from typing import Any, Callable, List, Optional, Tuple
  import torch.utils.data
  from ..utils import _log_api_usage_once
label_desc: Use image node_id 2 for calling the VisionDataset obj's underlying member method code with example usage: obj.__getitem__(index) without return types