class_docstr: Cifar10 data set.
  
  Described by http://www.cs.toronto.edu/~kriz/cifar.html.
docstr: Preprocess a single image in [height, width, depth] layout.
docstr_tok: ["Preprocess","a","single","image","in","[","height",",","width",",","depth","]","layout","."]
code: def preprocess(self, image):
      """Preprocess a single image in [height, width, depth] layout."""
      if self.subset == "train" and self.use_distortion:
          # Pad 4 pixels on each dimension of feature map, done in mini-batch
          image = tf.image.resize_images(
              image, [40, 40], tf.image.ResizeMethod.BICUBIC
          )
          image = tf.random_crop(image, [HEIGHT, WIDTH, DEPTH])
          image = tf.image.random_flip_left_right(image)
      return image
  
file_path: dragonfly/examples/nas/cg/cifar/cifar10.py
imports: import os
  import tensorflow
label_desc: Use image node_id 5 for calling the Cifar10DataSet obj's underlying member method code with example usage: obj.preprocess(image) and returns: image