code: def _GetPurgeMessage(
      most_recent_step,
      most_recent_wall_time,
      event_step,
      event_wall_time,
      num_expired_scalars,
      num_expired_histos,
      num_expired_comp_histos,
      num_expired_images,
      num_expired_audio,
  ):
      """Return the string message associated with TensorBoard purges."""
      return (
          "Detected out of order event.step likely caused by "
          "a TensorFlow restart. Purging expired events from Tensorboard"
          " display between the previous step: {} (timestamp: {}) and "
          "current step: {} (timestamp: {}). Removing {} scalars, {} "
          "histograms, {} compressed histograms, {} images, "
          "and {} audio."
      ).format(
          most_recent_step,
          most_recent_wall_time,
          event_step,
          event_wall_time,
          num_expired_scalars,
          num_expired_histos,
          num_expired_comp_histos,
          num_expired_images,
          num_expired_audio,
      )
  
imports: import collections
  import dataclasses
  import threading
  from typing import Optional, Sequence, Tuple
  from tensorboard.backend.event_processing import directory_watcher
  from tensorboard.backend.event_processing import event_file_loader
  from tensorboard.backend.event_processing import event_util
  from tensorboard.backend.event_processing import io_wrapper
  from tensorboard.backend.event_processing import plugin_asset_util
  from tensorboard.backend.event_processing import reservoir
  from tensorboard.backend.event_processing import tag_types
  from tensorboard.compat.proto import config_pb2
  from tensorboard.compat.proto import event_pb2
  from tensorboard.compat.proto import graph_pb2
  from tensorboard.compat.proto import meta_graph_pb2
  from tensorboard.compat.proto import tensor_pb2
  from tensorboard.plugins.distribution import compressor
  from tensorboard.util import tb_logging
label_desc: Use image node_id 1 for calling a global function with example usage: _GetPurgeMessage(most_recent_step, most_recent_wall_time, event_step, event_wall_time, num_expired_scalars, num_expired_histos, num_expired_comp_histos, num_expired_images, num_expired_audio) and returns: str