code: def run_all(logdir, num_summaries=400):
      """Generate a bunch of histogram data, and write it to logdir."""
      tf.random.set_seed(0)
      writer = tf.summary.create_file_writer(logdir)
      with writer.as_default():
          for step in range(num_summaries):
              k = step / float(num_summaries)
              run(k, step)
              writer.flush()
      print(
          "To view results in your browser, run `tensorboard --logdir %s`"
          % LOGDIR
      )
      print(
          "Logs can be uploaded publicly to TensorBoard.dev via "
          + "`tensorboard dev upload --logdir %s`" % LOGDIR
      )
  
imports: from absl import app
  import tensorflow
label_desc: Use image node_id 2 for calling a global function with example usage: run_all(logdir, num_summaries) without return types