class_docstr: CIFAR10 image classification dataset from https://www.cs.toronto.edu/~kriz/cifar.html
  
  Each sample is an image (in 3D NDArray) with shape (32, 32, 3).
  
  Parameters
  ----------
  root : str, default $MXNET_HOME/datasets/cifar10
      Path to temp folder for storing data.
  train : bool, default True
      Whether to load the training or testing set.
  transform : function, default None
      DEPRECATED FUNCTION ARGUMENTS.
      A user defined callback that transforms each sample. For example::
  
          transform=lambda data, label: (data.astype(np.float32)/255, label)
class_docstr_tok: ["CIFAR10","image","classification","dataset","from","https",":","\/\/www.cs.toronto.edu\/~kriz\/cifar.html","Each","sample","is","an","image","(","in","3D","NDArray",")","with","shape","(","32",",","32",",","3",")",".","Parameters","--","--","--","--","--","root",":","str",",","default","$","MXNET_HOME\/datasets\/cifar10","Path","to","temp","folder","for","storing","data",".","train",":","bool",",","default","True","Whether","to","load","the","training","or","testing","set",".","transform",":","function",",","default","None","DEPRECATED","FUNCTION","ARGUMENTS",".","A","user","defined","callback","that","transforms","each","sample",".","For","example",":",":","transform=lambda","data",",","label",":","(","data.astype","(","np.float32",")","\/255",",","label",")"]
code: def _read_batch(self, filename):
      with open(filename, "rb") as fin:
          data = np.frombuffer(fin.read(), dtype=np.uint8).reshape(
              -1, 3072 + 1
          )
  
      return data[:, 1:].reshape(-1, 3, 32, 32).transpose(
          0, 2, 3, 1
      ), data[:, 0].astype(np.int32)
  
imports: import os
  import gzip
  import tarfile
  import struct
  import warnings
  import numpy
  from ..None import dataset
  from ...utils import download, check_sha1, _get_repo_file_url
  from ....None import ndarray, image, recordio, base
  from ....None import numpy
  from ....util import is_np_array, default_array
  from ....base import numeric_types
label_desc: Use image node_id 2 for calling the CIFAR10 obj's underlying member method code with example usage: obj._read_batch(filename) and returns: data,  data