code: def _generate_data_for_set(set_name, example_start, num_examples):
      """Generate different data examples for the train, validation or test sets."""
      # Generate JPEG and XML files of each example.
      for example_id in range(
          example_start, example_start + num_examples
      ):
          _generate_jpeg(example_id, 480, 640)
          _generate_annotation(example_id, 480, 640)
      # Add all example ids to the TXT file with all examples in the set.
      filepath = os.path.join(
          _output_dir(),
          "BCCD_Dataset-1.0/BCCD/ImageSets/Main/%s.txt" % set_name,
      )
      _write_text_file(
          filepath,
          "".join(
              [
                  "BloodImage_{:05d}\n".format(example_id)
                  for example_id in range(
                      example_start, example_start + num_examples
                  )
              ]
          ),
      )
  
file_path: datasets/tensorflow_datasets/datasets/bccd/dummy_data_generation.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.datasets.bccd import bccd_dataset_builder
  import tensorflow_datasets.public_api
  from tensorflow_datasets.testing import fake_data_utils
label_desc: Use image node_id 5 for calling a global function with example usage: _generate_data_for_set(set_name, example_start, num_examples) without return types