code: def create_run(logdir, run_name):
      # Creates a run specified by `run_name` populated with the text summaries
      # generated by the function above.
      writer = tf.summary.create_file_writer(logdir + "/" + run_name)
  
      with writer.as_default():
          for step in range(STEPS):
              with tf.name_scope("simple_example"):
                  simple_example(step)
              with tf.name_scope("markdown_table"):
                  markdown_table(step)
              with tf.name_scope("higher_order_tensors"):
                  higher_order_tensors(step)
              with tf.name_scope("simple_example_with_pagination"):
                  simple_example_with_pagination(step)
  
      writer.close()
  
file_path: tensorboard/tensorboard/plugins/text/text_demo.py
imports: from absl import app
  from absl import logging
  import tensorflow
label_desc: Use image node_id 5 for calling a global function with example usage: create_run(logdir, run_name) without return types