code: def get_activation_quantization(param_dict):
      output = {}
      if ACTIVATION_QUANTIZATION not in param_dict.keys():
          param_dict[ACTIVATION_QUANTIZATION] = {
              SHARED_PARAMETERS: {},
              DIFFERENT_GROUPS: {},
          }
      sub_param_dict = param_dict[ACTIVATION_QUANTIZATION]
      # shared parameters
      output[
          SHARED_PARAMETERS
      ] = get_activation_quantization_shared_parameters(sub_param_dict)
      # each sub-groups
      if output[SHARED_PARAMETERS][ACTIVATION_QUANTIZATION_ENABLED]:
          assert (
              DIFFERENT_GROUPS in sub_param_dict.keys()
          ), f"Activation Quantization is enabled, {DIFFERENT_GROUPS} must be specified"
      output[
          DIFFERENT_GROUPS
      ] = get_activation_quantization_different_groups(sub_param_dict)
      return output
  
imports: from .constants import *
  import copy
  from ..runtime.config_utils import get_scalar_param
label_desc: Use image node_id 9 for calling a global function with example usage: get_activation_quantization(param_dict) and returns: output