code: def main(argv):
      if len(argv) > 1:
          raise tf.app.UsageError("Too many command-line arguments.")
  
      writer = tf.io.TFRecordWriter(FLAGS.output_file)
  
      feature = {}
  
      for frame in range(30):
          feature["%d/action" % frame] = tf.train.Feature(
              float_list=tf.train.FloatList(
                  value=np.random.uniform(size=(4))
              )
          )
          feature["%d/endeffector_pos" % frame] = tf.train.Feature(
              float_list=tf.train.FloatList(
                  value=np.random.uniform(size=(3))
              )
          )
          feature["%d/image_aux1/encoded" % frame] = tf.train.Feature(
              bytes_list=tf.train.BytesList(
                  value=["\x00\xff\x00" * 64 * 64]
              )
          )
          feature["%d/image_main/encoded" % frame] = tf.train.Feature(
              bytes_list=tf.train.BytesList(
                  value=["\x00\x00\xff" * 64 * 64]
              )
          )
      example = tf.train.Example(
          features=tf.train.Features(feature=feature)
      )
      writer.write(example.SerializeToString())
      writer.close()
  
imports: from absl import app
  from absl import flags
  import numpy
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: main(argv) without return types