class_docstr: Helper class that provides TensorFlow image coding utilities.
docstr: Converts a PNG compressed image to a JPEG Tensor.
docstr_tok: ["Converts","a","PNG","compressed","image","to","a","JPEG","Tensor","."]
code: def png_to_jpeg(self, image_data: bytes) -> tf.Tensor:
      """Converts a PNG compressed image to a JPEG Tensor."""
      return self._sess.run(
          self._png_to_jpeg, feed_dict={self._png_data: image_data}
      )
  
imports: from typing import Union, Iterable, Tuple, Optional
  import os
  import requests
  import shutil
  import sys
  import tensorflow.compat.v1
  import time
  from ray.util.scheduling_strategies import NodeAffinitySchedulingStrategy
  import ray
label_desc: Use image node_id 2 for calling the ImageCoder obj's underlying member method code with example usage: obj.png_to_jpeg(image_data) and returns: self