code: def get_compression_config(param_dict):
      #
      output = {}
  
      if COMPRESSION_TRAINING not in param_dict.keys():
          param_dict[COMPRESSION_TRAINING] = {}
      sub_param_dict = param_dict[COMPRESSION_TRAINING]
      output[WEIGHT_QUANTIZATION] = get_weight_quantization(
          sub_param_dict
      )
      output[ACTIVATION_QUANTIZATION] = get_activation_quantization(
          sub_param_dict
      )
      output[SPARSE_PRUNING] = get_sparse_pruning(sub_param_dict)
      output[ROW_PRUNING] = get_row_pruning(sub_param_dict)
      output[HEAD_PRUNING] = get_head_pruning(sub_param_dict)
      output[CHANNEL_PRUNING] = get_channel_pruning(sub_param_dict)
  
      output[LAYER_REDUCTION] = get_layer_reduction(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 1 for calling a global function with example usage: get_compression_config(param_dict) and returns: output