code: def testConstruction_SupportedAndUnsupportedActivations(self):
      layer = self.TestLayer()
  
      # Supported activations. No error thrown.
      QuantizeAwareActivation(
          activations.relu, self.quantizer, 0, layer
      )
      QuantizeAwareActivation(
          activations.softmax, self.quantizer, 0, layer
      )
      QuantizeAwareActivation(
          quantize_aware_activation.NoOpActivation(),
          self.quantizer,
          0,
          layer,
      )
  
      def custom_quantize(x):
          return x
  
      with self.assertRaises(ValueError) as cm:
          QuantizeAwareActivation(
              custom_quantize, self.quantizer, 0, layer
          )
      self.assertEqual(
          str(cm.exception),
          QuantizeAwareActivation._CUSTOM_ACTIVATION_ERR_MSG,
      )
  
file_path: model-optimization/tensorflow_model_optimization/python/core/quantization/keras/quantize_aware_activation_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_model_optimization.python.core.quantization.keras import quantize_aware_activation
  from tensorflow_model_optimization.python.core.quantization.keras import quantizers
  from tensorflow_model_optimization.python.core.quantization.keras import utils
label_desc: Use image node_id 3 for calling the QuantizeAwareQuantizationTest obj's underlying member method code with example usage: obj.testConstruction_SupportedAndUnsupportedActivations() and returns: x