code: def get_layer_reduction(param_dict):
      output = {}
      output[LAYER_REDUCTION_ENABLED] = LAYER_REDUCTION_ENABLED_DEFAULT
      if get_layer_reduction_enabled(param_dict):
          output[LAYER_REDUCTION_ENABLED] = get_layer_reduction_enabled(
              param_dict
          )
          for key, val in get_layer_reduction_params(
              param_dict
          ).items():
              output[key] = val
      return output
  
imports: from .constants import *
  import copy
  from ..runtime.config_utils import get_scalar_param
label_desc: Use image node_id 2 for calling a global function with example usage: get_layer_reduction(param_dict) and returns: output