title: How do we use tf.image.encode_jpeg to write out an image in TensorFlow?
body: <p>Given a Tensor, I would like to use this function to get a 0D string and then write this out as "sample.jpg".</p>
  
  <p>This can be easily achieved by OpenCV or Python PIL, but I would like to keep everything within TF if possible.</p>