class_docstr: QuantizeConfig for keras.layers.Activation.
  
  `keras.layers.Activation` needs a separate `QuantizeConfig` since the
  decision to quantize depends on the specific activation type.
class_docstr_tok: ["QuantizeConfig","for","keras.layers.Activation",".","`","keras.layers.Activation","`","needs","a","separate","`","QuantizeConfig","`","since","the","decision","to","quantize","depends","on","the","specific","activation","type","."]
code: def _assert_activation_layer(self, layer):
      if not isinstance(layer, layers.Activation):
          raise RuntimeError(
              "Default8BitActivationQuantizeConfig can only be used with "
              "`keras.layers.Activation`."
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
  from tensorflow_model_optimization.python.core.quantization.keras import quantize_config
  from tensorflow_model_optimization.python.core.quantization.keras import quantize_registry
  from tensorflow_model_optimization.python.core.quantization.keras import quantizers
  from tensorflow_model_optimization.python.core.quantization.keras.default_8bit import default_8bit_quantize_configs
  from tensorflow_model_optimization.python.core.quantization.keras.default_8bit import default_8bit_quantizers
label_desc: Use image node_id 2 for calling the Default8BitActivationQuantizeConfig obj's underlying member method code with example usage: obj._assert_activation_layer(layer) without return types