class_docstr: `CIFAR10 <https://www.cs.toronto.edu/~kriz/cifar.html>`_ Dataset.
  
  Args:
      root (string): Root directory of dataset where directory
          ``cifar-10-batches-py`` exists or will be saved to if download is set to True.
      train (bool, optional): If True, creates dataset from training set, otherwise
          creates from test set.
      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.
class_docstr_tok: ["`","CIFAR10","<","https",":","\/\/www.cs.toronto.edu\/~kriz\/cifar.html",">","`","_","Dataset",".","Args",":","root","(","string",")",":","Root","directory","of","dataset","where","directory","``","cifar-10-batches-py","``","exists","or","will","be","saved","to","if","download","is","set","to","True",".","train","(","bool",",","optional",")",":","If","True",",","creates","dataset","from","training","set",",","otherwise","creates","from","test","set",".","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","."]
code: def extra_repr(self) -> str:
      split = "Train" if self.train is True else "Test"
      return f"Split: {split}"
  
file_path: vision/torchvision/datasets/cifar.py
imports: import os.path
  import pickle
  from typing import Any, Callable, Optional, Tuple
  import numpy
  from PIL import Image
  from .utils import check_integrity, download_and_extract_archive
  from .vision import VisionDataset
label_desc: Use image node_id 7 for calling the CIFAR10 obj's underlying member method code with example usage: obj.extra_repr() and returns: str, split