import tensorflow as tf


    images = images.reshape((num_images, 3, 32, 32))
    labels = data['labels']

    with tf.Graph().as_default():
      image_placeholder = tf.placeholder(dtype=tf.uint8)
      encoded_image = tf.image.encode_png(image_placeholder)

      with tf.Session('') as sess:

