def METHOD_NAME(encoded_image):
  image = tf.image.decode_jpeg(encoded_image, channels=3)
  image = tf.image.convert_image_dtype(image, dtype=tf.float32)
  if self.do_eval:
    return self._PreprocessForEval(image)
  else:
    return self._PreprocessForTraining(image)