code: def _write_bbox_labels(fname, image_ids):
      """Writes CSV with 0-10 labels per image."""
      lines = [
          "ImageID,Source,LabelName,Confidence,XMin,XMax,YMin,YMax,IsOccluded,"
          "IsTruncated,IsGroupOf,IsDepiction,IsInside"
      ]
      boxable_class_label = ClassLabel(
          names_file=utils.tfds_write_path(
              os.path.join(
                  "object_detection", "open_images_classes_boxable.txt"
              )
          )
      )
      for image_id in image_ids:
          labels = random.sample(
              boxable_class_label.names, random.randint(0, 10)
          )
          for label in labels:
              source = random.choice(open_images.BBOX_SOURCES)
              xmin = random.uniform(0, 1)
              xmax = random.uniform(xmin, 1)
              ymin = random.uniform(0, 1)
              ymax = random.uniform(ymin, 1)
              p1, p2, p3, p4, p5 = [
                  random.randint(-1, 1) for unused_i in range(5)
              ]
              lines.append(
                  "%s,%s,%s,1,%.6f,%.6f,%.6f,%.6f,%s,%s,%s,%s,%s"
                  % (
                      image_id,
                      source,
                      label,
                      xmin,
                      xmax,
                      ymin,
                      ymax,
                      p1,
                      p2,
                      p3,
                      p4,
                      p5,
                  )
              )
      path = os.path.join(_output_dir(), fname)
      with open(path, "w") as csv_f:
          csv_f.write("\n".join(lines))
  
file_path: datasets/tensorflow_datasets/testing/fake_data_generation/open_images.py
imports: import os
  import random
  import tarfile
  from absl import app
  from absl import flags
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.features import ClassLabel
  from tensorflow_datasets.object_detection import open_images
  from tensorflow_datasets.testing import fake_data_utils
label_desc: Use image node_id 5 for calling a global function with example usage: _write_bbox_labels(fname, image_ids) without return types