code: def get_random_jpeg(height=None, width=None, channels=CHANNELS_NB):
      """Returns path to JPEG picture."""
      image = get_random_picture(height, width, channels)
      jpeg = tf.image.encode_jpeg(image)
      with utils.nogpu_session() as sess:
          res = sess.run(jpeg)
      fobj = tempfile.NamedTemporaryFile(
          delete=False, mode="wb", suffix=".JPEG"
      )
      fobj.write(res)
      fobj.close()
      return fobj.name
  
file_path: datasets/tensorflow_datasets/testing/fake_data_utils.py
imports: import random
  import tempfile
  import numpy
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 2 for calling a global function with example usage: get_random_jpeg(height, width, channels) and returns: fobj