class_docstr: Helper class to create tensorboard summaries for the clustering progress.
  
  This class is derived from tf.keras.callbacks.TensorBoard and just adds
  functionality to write histograms with batch-wise frequency.
  
  Arguments:
      log_dir: The path to the directory where the log files are saved
      cluster_update_freq: determines the frequency of updates of the
        clustering histograms. Same behaviour as parameter update_freq of the
        base class, i.e. it accepts `'batch'`, `'epoch'` or integer.
code: def on_epoch_end(self, epoch, logs=None):
      super().on_epoch_end(epoch, logs)
      if self.cluster_update_freq == "epoch":
          self._write_summary()
  
file_path: model-optimization/tensorflow_model_optimization/python/core/clustering/keras/clustering_callbacks.py
imports: import tensorflow
  from tensorflow_model_optimization.python.core.keras import compat
label_desc: Use image node_id 4 for calling the ClusteringSummaries obj's underlying member method code with example usage: obj.on_epoch_end(epoch, logs) without return types