code: def _calibrate_quantized_sym(qsym, min_max_dict):
      """Given a dictionary containing the thresholds for quantizing the layers,
      set the thresholds into the quantized symbol as the params of requantize operators.
      """
      if min_max_dict is None or len(min_max_dict) == 0:
          return qsym
      num_layer_outputs = len(min_max_dict)
      layer_output_names = []
      min_vals = []
      max_vals = []
      for k, v in min_max_dict.items():
          layer_output_names.append(k)
          min_vals.append(v[0])
          max_vals.append(v[1])
  
      calibrated_sym = SymbolHandle()
      check_call(
          _LIB.MXSetCalibTableToQuantizedSymbol(
              qsym.handle,
              mx_uint(num_layer_outputs),
              c_str_array(layer_output_names),
              c_array(ctypes.c_float, min_vals),
              c_array(ctypes.c_float, max_vals),
              ctypes.byref(calibrated_sym),
          )
      )
      return Symbol(calibrated_sym)
  
imports: import abc
  import ctypes
  import logging
  import os
  import warnings
  import numpy
  import mxnet
  from ..base import _LIB, check_call, py_str
  from ..base import c_array, c_str, mx_uint, mx_real_t, c_str_array
  from ..base import SymbolHandle
  from ..symbol import Symbol
  from ..None import ndarray
  from ..io import DataDesc
  from ..device import cpu, Device
  from ..util import is_np_array, wrap_ctx_to_device_func
label_desc: Use image node_id 4 for calling a global function with example usage: _calibrate_quantized_sym(qsym, min_max_dict) and returns: Symbol, qsym