code: def save_image(images, filename):
      """Convert image data into TFRecords."""
      num_examples = images.shape[0]
  
      with tf.io.TFRecordWriter(filename) as writer:
          for index in range(num_examples):
              image = images[index]
              example = encode_image(image)
              writer.write(example.SerializeToString())
  
file_path: tf-encrypted/tf_encrypted/keras/datasets/convert.py
imports: import tensorflow
label_desc: Use image node_id 9 for calling a global function with example usage: save_image(images, filename) without return types