code: def remove_summaries():
      """Remove summaries from the default graph."""
      g = tf.get_default_graph()
      key = "mtf_scalar_summaries"
      tf.logging.debug(
          "Remove summaries %s" % str(g.get_collection(key))
      )
      del g.get_collection_ref(key)[:]
      assert not g.get_collection(key)
  
file_path: mesh/mesh_tensorflow/utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import contextlib
  import heapq
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow.python.framework import ops
  from tensorflow.python.tpu.topology import Topology
label_desc: Use image node_id 4 for calling a global function with example usage: remove_summaries() without return types