class_docstr: Produces [image, label] in Cifar10 dataset,
  image is 32x32x3 in the range [0,255].
  label is an int.
docstr: Args:
      train_or_test (str): either 'train' or 'test'.
      shuffle (bool): shuffle the dataset, default to shuffle in training
docstr_tok: ["Args",":","train_or_test","(","str",")",":","either","'train","'","or","'test","'",".","shuffle","(","bool",")",":","shuffle","the","dataset",",","default","to","shuffle","in","training"]
code: def __init__(self, train_or_test, shuffle=None, dir=None):
      """
      Args:
          train_or_test (str): either 'train' or 'test'.
          shuffle (bool): shuffle the dataset, default to shuffle in training
      """
      super(Cifar10, self).__init__(train_or_test, shuffle, dir, 10)
  
imports: import numpy
  import os
  import pickle
  import tarfile
  from ...utils import logger
  from ...utils.fs import download, get_dataset_path
  from ..base import RNGDataFlow
label_desc: Use image node_id 1 to create a new Cifar10 object from inherited base classes: CifarBase with example: obj = Cifar10(train_or_test, shuffle, dir)