code: def init_collections():
      tf.add_to_collection("inputs", json.dumps({"image": x.name}))
      tf.add_to_collection(
          "outputs", json.dumps({"prediction": y.name})
      )
      tf.add_to_collection("x", x.name)
      tf.add_to_collection("y_", y_.name)
      tf.add_to_collection("acc", accuracy.name)
  
imports: import argparse
  import json
  import tensorflow
  from tensorflow.examples.tutorials.mnist import input_data
label_desc: Use image node_id 12 for calling a global function with example usage: init_collections() without return types