code: def init_summary_writers():
      global summaries, train_writer, validate_writer
      summaries = tf.compat.v1.summary.merge_all()
      train_writer = tf.compat.v1.summary.FileWriter(
          FLAGS.rundir, tf.compat.v1.get_default_graph()
      )
      validate_writer = tf.compat.v1.summary.FileWriter(
          FLAGS.rundir + "/val"
      )
  
imports: import argparse
  import json
  import tensorflow
  from tensorflow.examples.tutorials.mnist import input_data
label_desc: Use image node_id 10 for calling a global function with example usage: init_summary_writers() without return types