code: def end_session():
      write_summary(
          summary.session_end_pb(
              api_pb2.Status.Value(FLAGS.status), FLAGS.end_time_secs
          )
      )
  
file_path: tensorboard/tensorboard/plugins/hparams/hparams_util.py
imports: import getpass
  import time
  from absl import app
  from absl import flags
  from google.protobuf import struct_pb2
  from google.protobuf import text_format
  import tensorflow
  from tensorboard.plugins.hparams import api_pb2
  from tensorboard.plugins.hparams import hparams_util_pb2
  from tensorboard.plugins.hparams import summary
label_desc: Use image node_id 5 for calling a global function with example usage: end_session() without return types