class_docstr: Tiny Imagenet Pytorch Dataset
docstr: Returns the index-th x, y pattern of the set
docstr_tok: ["Returns","the","index-th","x",",","y","pattern","of","the","set"]
code: def __getitem__(self, index):
      """Returns the index-th x, y pattern of the set"""
  
      path, target = self.data[index], int(self.targets[index])
  
      # doing this so that it is consistent with all other datasets
      # to return a PIL Image
      img = self.loader(path)
  
      if self.transform is not None:
          img = self.transform(img)
  
      if self.target_transform is not None:
          target = self.target_transform(target)
  
      return img, target
  
file_path: avalanche/avalanche/benchmarks/datasets/tiny_imagenet/tiny_imagenet.py
imports: import csv
  from pathlib import Path
  from typing import List, Optional, Tuple, Union
  from torchvision.datasets.folder import default_loader
  from torchvision.transforms import ToTensor
  from avalanche.benchmarks.datasets import SimpleDownloadableDataset, default_dataset_location
label_desc: Use image node_id 8 for calling the TinyImagenet obj's underlying member method code with example usage: obj.__getitem__(index) and returns: img,  target