code: def quantize(mod, params, data_aware):
      if data_aware:
          with relay.quantize.qconfig(
              calibrate_mode="kl_divergence", weight_scale="max"
          ):
              mod = relay.quantize.quantize(
                  mod, params, dataset=calibrate_dataset()
              )
      else:
          with relay.quantize.qconfig(
              calibrate_mode="global_scale", global_scale=8.0
          ):
              mod = relay.quantize.quantize(mod, params)
      return mod
  
file_path: tvm/gallery/how_to/deploy_models/deploy_quantized.py
imports: import tvm
  from tvm import te
  from tvm import relay
  import mxnet
  from tvm.contrib.download import download_testdata
  from mxnet import gluon
  import logging
  import os
label_desc: Use image node_id 4 for calling a global function with example usage: quantize(mod, params, data_aware) and returns: mod