code: def testEmptyCollectionsDoNotShowUpInMetaGraphDef(self):
      with tf.Graph().as_default() as graph:
          tf.Variable("name")
          self.assertEqual(len(graph.get_all_collection_keys()), 2)
          for collection_key in graph.get_all_collection_keys():
              del graph.get_collection_ref(collection_key)[:]
          saved_model_lib.add_signature(
              "default", {}, {"default": tf.constant(1)}
          )
  
      handler = saved_model_lib.SavedModelHandler()
      handler.add_graph_copy(graph)
      (meta_graph,) = handler.meta_graphs
      self.assertEqual(len(meta_graph.collection_def), 0)
  
imports: import copy
  import os
  from absl import logging
  import tensorflow
  from tensorflow_hub import saved_model_lib
  from tensorflow.core.protobuf import meta_graph_pb2
label_desc: Use image node_id 11 for calling the SavedModelLibTest obj's underlying member method code with example usage: obj.testEmptyCollectionsDoNotShowUpInMetaGraphDef() without return types