code: def get_cifar10(withlabel=True, ndim=3, scale=1.0, dtype=None):
      """Gets the CIFAR-10 dataset.
  
      `CIFAR-10 <https://www.cs.toronto.edu/~kriz/cifar.html>`_ is a set of small
      natural images. Each example is an RGB color image of size 32x32,
      classified into 10 groups. In the original images, each component of pixels
      is represented by one-byte unsigned integer. This function scales the
      components to floating point values in the interval ``[0, scale]``.
  
      This function returns the training set and the test set of the official
      CIFAR-10 dataset. If ``withlabel`` is ``True``, each dataset consists of
      tuples of images and labels, otherwise it only consists of images.
  
      Args:
          withlabel (bool): If ``True``, it returns datasets with labels. In this
              case, each example is a tuple of an image and a label. Otherwise,
              the datasets only contain images.
          ndim (int): Number of dimensions of each image. The shape of each image
              is determined depending on ndim as follows:
  
              - ``ndim == 1``: the shape is ``(3072,)``
              - ``ndim == 3``: the shape is ``(3, 32, 32)``
  
          scale (float): Pixel value scale. If it is 1 (default), pixels are
              scaled to the interval ``[0, 1]``.
          dtype: Data type of resulting image arrays. ``chainer.config.dtype`` is
              used by default (see :ref:`configuration`).
  
      Returns:
          A tuple of two datasets. If ``withlabel`` is ``True``, both datasets
          are :class:`~chainer.datasets.TupleDataset` instances. Otherwise, both
          datasets are arrays of images.
  
      """
      return _get_cifar("cifar-10", withlabel, ndim, scale, dtype)
  
file_path: chainer/chainer/datasets/cifar.py
imports: import os
  import sys
  import tarfile
  import numpy
  import six.moves.cPickle
  import chainer
  from chainer.dataset import download
  from chainer.datasets import tuple_dataset
label_desc: Use image node_id 1 for calling a global function with example usage: get_cifar10(withlabel, ndim, scale, dtype) and returns: _get_cifar