class_docstr: `QMNIST <https://github.com/facebookresearch/qmnist>`_ Dataset.
  
  Args:
      root (string): Root directory of dataset whose ``raw``
          subdir contains binary files of the datasets.
      what (string,optional): Can be 'train', 'test', 'test10k',
          'test50k', or 'nist' for respectively the mnist compatible
          training set, the 60k qmnist testing set, the 10k qmnist
          examples that match the mnist testing set, the 50k
          remaining qmnist testing examples, or all the nist
          digits. The default is to select 'train' or 'test'
          according to the compatibility argument 'train'.
      compat (bool,optional): A boolean that says whether the target
          for each example is class number (for compatibility with
          the MNIST dataloader) or a torch vector containing the
          full qmnist information. Default=True.
      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.
      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.
      train (bool,optional,compatibility): When argument 'what' is
          not specified, this boolean decides whether to load the
          training set or the testing set.  Default: True.
class_docstr_tok: ["`","QMNIST","<","https",":","\/\/github.com\/facebookresearch\/qmnist",">","`","_","Dataset",".","Args",":","root","(","string",")",":","Root","directory","of","dataset","whose","``","raw","``","subdir","contains","binary","files","of","the","datasets",".","what","(","string",",","optional",")",":","Can","be","'train","'",",","'test","'",",","'test10k","'",",","'test50k","'",",","or","'nist","'","for","respectively","the","mnist","compatible","training","set",",","the","60k","qmnist","testing","set",",","the","10k","qmnist","examples","that","match","the","mnist","testing","set",",","the","50k","remaining","qmnist","testing","examples",",","or","all","the","nist","digits",".","The","default","is","to","select","'train","'","or","'test'","according","to","the","compatibility","argument","'train","'",".","compat","(","bool",",","optional",")",":","A","boolean","that","says","whether","the","target","for","each","example","is","class","number","(","for","compatibility","with","the","MNIST","dataloader",")","or","a","torch","vector","containing","the","full","qmnist","information",".","Default=True",".","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",".","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",".","train","(","bool",",","optional",",","compatibility",")",":","When","argument","'what","'","is","not","specified",",","this","boolean","decides","whether","to","load","the","training","set","or","the","testing","set",".","Default",":","True","."]
code: def extra_repr(self) -> str:
      return f"Split: {self.what}"
  
imports: import codecs
  import os
  import os.path
  import shutil
  import string
  import sys
  import warnings
  from typing import Any, Callable, Dict, List, Optional, Tuple
  from urllib.error import URLError
  import numpy
  import torch
  from PIL import Image
  from .utils import _flip_byte_order, check_integrity, download_and_extract_archive, extract_archive, verify_str_arg
  from .vision import VisionDataset
label_desc: Use image node_id 8 for calling the QMNIST obj's underlying member method code with example usage: obj.extra_repr() and returns: str, self