code: def run_all(logdir, verbose=False):
      """Run simulations on a reasonable set of parameters.
  
      Arguments:
        logdir: the directory into which to store all the runs' data
        verbose: if true, print out each run's name as it begins.
      """
      writer = tf.summary.FileWriter(logdir)
      writer.add_summary(create_experiment_summary())
      writer.close()
      session_num = 0
      num_sessions = (
          len(TEMPERATURE_LIST)
          * len(TEMPERATURE_LIST)
          * len(HEAT_COEFFICIENTS)
          * 2
      )
      for initial_temperature in TEMPERATURE_LIST:
          for ambient_temperature in TEMPERATURE_LIST:
              for material in HEAT_COEFFICIENTS:
                  hparams = {
                      "initial_temperature": initial_temperature,
                      "ambient_temperature": ambient_temperature,
                      "material": material,
                  }
                  hparam_str = str(hparams)
                  group_name = fingerprint(hparam_str)
                  for repeat_idx in range(2):
                      session_id = str(session_num)
                      if verbose:
                          print(
                              "--- Running training session %d/%d"
                              % (session_num + 1, num_sessions)
                          )
                          print(hparam_str)
                          print("--- repeat #: %d" % (repeat_idx + 1))
                      run(logdir, session_id, hparams, group_name)
                      session_num += 1
  
file_path: tensorboard/tensorboard/plugins/hparams/hparams_minimal_demo.py
imports: import hashlib
  import math
  import os.path
  import shutil
  import tensorflow.compat.v1
  from absl import flags
  from absl import app
  from google.protobuf import struct_pb2
  from tensorboard.plugins.scalar import summary
  from tensorboard.plugins.hparams import api_pb2
  from tensorboard.plugins.hparams import summary
label_desc: Use image node_id 5 for calling a global function with example usage: run_all(logdir, verbose) without return types