code: def _generate_jpeg(example_id, height, width):
      """Generate a fake jpeg image for the given example id."""
      jpeg = fake_data_utils.get_random_jpeg(height=height, width=width)
      filepath = os.path.join(
          _voc2007_output_dir(),
          "VOCdevkit/VOC2007/JPEGImages/%06d.jpg" % example_id,
      )
      dirname = os.path.dirname(filepath)
      if not tf.io.gfile.exists(dirname):
          tf.io.gfile.makedirs(dirname)
      tf.io.gfile.copy(jpeg, filepath, overwrite=True)
  
file_path: datasets/tensorflow_datasets/testing/fake_data_generation/voc2007.py
imports: import os
  import random
  from absl import app
  from absl import flags
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  from tensorflow_datasets.object_detection import voc
  import tensorflow_datasets.public_api
  from tensorflow_datasets.testing import fake_data_utils
label_desc: Use image node_id 3 for calling a global function with example usage: _generate_jpeg(example_id, height, width) without return types