code: def _generate():
      """Generates a fake data set and writes it to the fake_examples directory."""
      output_dir = os.path.join(
          FLAGS.tfds_dir,
          "testing",
          "test_data",
          "fake_examples",
          "shapes3d",
      )
      test_utils.remake_dir(output_dir)
  
      images, values = _create_fake_samples()
  
      with h5py.File(os.path.join(output_dir, OUTPUT_NAME), "w") as f:
          img_dataset = f.create_dataset("images", images.shape, "|u1")
          img_dataset.write_direct(images)
          values_dataset = f.create_dataset(
              "labels", values.shape, "<f8"
          )
          values_dataset.write_direct(np.ascontiguousarray(values))
  
file_path: datasets/tensorflow_datasets/testing/fake_data_generation/shapes3d.py
imports: import os
  from absl import app
  from absl import flags
  import h5py
  import numpy
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.testing import test_utils
label_desc: Use image node_id 2 for calling a global function with example usage: _generate() without return types