code: def add_pruning_summaries(model):
      """Add pruning summaries to the graph for the given model."""
  
      with ops.name_scope("pruning_summaries"):
          for layer in model.layers:
              if isinstance(layer, PruneLowMagnitude):
                  # Add the summary under the underlying layer's name_scope.
                  # TODO(suyoggupta): Look for a less ugly way of doing this.
                  with ops.name_scope(layer.layer.name):
                      layer.pruning_obj.add_pruning_summaries()
  
file_path: model-optimization/tensorflow_model_optimization/python/core/sparsity/keras/estimator_utils.py
imports: import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
  from tensorflow.python.framework import ops
  from tensorflow_model_optimization.python.core.sparsity.keras.pruning_wrapper import PruneLowMagnitude
label_desc: Use image node_id 1 for calling a global function with example usage: add_pruning_summaries(model) without return types