class_docstr: `USPS <https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/multiclass.html#usps>`_ Dataset.
  The data-format is : [label [index:value ]*256 \n] * num_lines, where ``label`` lies in ``[1, 10]``.
  The value for each pixel lies in ``[-1, 1]``. Here we transform the ``label`` into ``[0, 9]``
  and make pixel values in ``[0, 255]``.
  
  Args:
      root (string): Root directory of dataset to store``USPS`` data files.
      train (bool, optional): If True, creates dataset from ``usps.bz2``,
          otherwise from ``usps.t.bz2``.
      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.
      download (bool, optional): If true, downloads the dataset from the internet and
          puts it in root directory. If dataset is already downloaded, it is not
          downloaded again.
docstr: Args:
      index (int): Index
  
  Returns:
      tuple: (image, target) where target is index of the target class.
docstr_tok: ["Args",":","index","(","int",")",":","Index","Returns",":","tuple",":","(","image",",","target",")","where","target","is","index","of","the","target","class","."]
code: def __getitem__(self, index: int) -> Tuple[Any, Any]:
      """
      Args:
          index (int): Index
  
      Returns:
          tuple: (image, target) where target is index of the target class.
      """
      img, 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 = Image.fromarray(img, mode="L")
  
      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: vision/torchvision/datasets/usps.py
imports: import os
  from typing import Any, Callable, Optional, Tuple
  import numpy
  from PIL import Image
  from .utils import download_url
  from .vision import VisionDataset
label_desc: Use image node_id 2 for calling the USPS obj's underlying member method code with example usage: obj.__getitem__(index) and returns: img,  target