class_docstr: Base class for MNIST, cifar10, etc.
code: def __init__(self, root, transform):
      super(_DownloadedDataset, self).__init__()
      if transform is not None:
          raise DeprecationWarning(
              "Directly apply transform to dataset is deprecated. "
              "Please use dataset.transform() or dataset.transform_first() instead..."
          )
      self._transform = transform
      self._data = None
      self._label = None
      root = os.path.expanduser(root)
      self._root = root
      if not os.path.isdir(root):
          os.makedirs(root)
      self._get_data()
      self.handle = None
  
imports: import os
  from ...None import recordio, ndarray
  from ...util import default_array
label_desc: Use image node_id 1 to create a new _DownloadedDataset object from inherited base classes: Dataset with example: obj = _DownloadedDataset(root, transform)