code: def init_train_op():
      global y_, loss, train_op
      y_ = tf.placeholder(tf.float32, [None, 10])
      loss = tf.reduce_mean(
          tf.nn.softmax_cross_entropy_with_logits(logits=y, labels=y_)
      )
      train_op = tf.train.AdamOptimizer(FLAGS.lr).minimize(loss)
  
imports: import argparse
  import json
  import tensorflow
  from tensorflow.examples.tutorials.mnist import input_data
label_desc: Use image node_id 9 for calling a global function with example usage: init_train_op() without return types