code: def testSerializationQuantizeAnnotate(self):
      input_shape = (2,)
      layer = keras.layers.Dense(3)
      wrapper = quantize_annotate.QuantizeAnnotate(
          layer=layer,
          quantize_config=self.TestQuantizeConfig(),
          input_shape=input_shape,
      )
  
      custom_objects = {
          "QuantizeAnnotate": quantize_annotate.QuantizeAnnotate,
          "TestQuantizeConfig": self.TestQuantizeConfig,
      }
  
      serialized_wrapper = serialize_layer(wrapper)
      with tf.keras.utils.custom_object_scope(custom_objects):
          wrapper_from_config = deserialize_layer(serialized_wrapper)
  
      self.assertEqual(
          wrapper_from_config.get_config(), wrapper.get_config()
      )
  
file_path: model-optimization/tensorflow_model_optimization/python/core/quantization/keras/quantize_annotate_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow
  from tensorflow_model_optimization.python.core.quantization.keras import quantize_annotate
  from tensorflow_model_optimization.python.core.quantization.keras import quantize_config
label_desc: Use image node_id 3 for calling the QuantizeAnnotateTest obj's underlying member method code with example usage: obj.testSerializationQuantizeAnnotate() without return types