code: def testModuleAttachments(self):
      meta_graph = meta_graph_pb2.MetaGraphDef()
      with tf.Graph().as_default():
          saved_model_lib.attach_bytes(
              "key1", tf.compat.as_bytes("oops")
          )
          saved_model_lib.attach_bytes(
              "key2", tf.compat.as_bytes("value2")
          )
          saved_model_lib.attach_bytes(
              "key1", tf.compat.as_bytes("value1")
          )
          saved_model_lib._export_module_attachments(meta_graph)
      actual = saved_model_lib.get_attached_bytes_map(meta_graph)
      expected = {
          "key1": tf.compat.as_bytes("value1"),
          "key2": tf.compat.as_bytes("value2"),
      }
      self.assertDictEqual(expected, actual)
  
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 9 for calling the SavedModelLibTest obj's underlying member method code with example usage: obj.testModuleAttachments() without return types