code: def _generate_stl10_data():
      """Generates .bin files for stl10."""
      output_dir = stl_output_dir()
      test_utils.remake_dir(output_dir)
      for fname in ["train_y.bin", "test_y.bin"]:
          labels = np.random.randint(
              NUMBER_LABELS, size=(1), dtype=np.uint8
          )
          dump(stl_output_dir(), fname, labels)
  
      for fname in ["train_X.bin", "test_X.bin", "unlabeled_X.bin"]:
          images = np.random.randint(
              256, size=(1, HEIGHT * WIDTH * 3), dtype=np.uint8
          )
          dump(stl_output_dir(), fname, images)
      label_names = [
          "airplane",
          "bird",
          "car",
          "cat",
          "deer",
          "dog",
          "horse",
          "monkey",
          "ship",
          "truck",
      ]
      with open(os.path.join(output_dir, "class_names.txt"), "w") as f:
          f.write("\n".join(label_names))
  
file_path: datasets/tensorflow_datasets/testing/fake_data_generation/stl10.py
imports: import os
  from absl import app
  from absl import flags
  import numpy
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.testing import test_utils
label_desc: Use image node_id 3 for calling a global function with example usage: _generate_stl10_data() without return types