code: def test_quantize_acc(cfg, rec_val):
      qconfig = qtz.qconfig(
          skip_conv_layers=[0],
          nbit_input=cfg.nbit_input,
          nbit_weight=cfg.nbit_input,
          global_scale=cfg.global_scale,
          dtype_input=cfg.dtype_input,
          dtype_weight=cfg.dtype_input,
          dtype_activation=cfg.dtype_output,
          debug_enabled_ops=None,
      )
  
      batch_size = 1
      model, params = get_model(cfg.model, batch_size, qconfig)
      val_data, batch_fn = get_val_data(
          cfg.model, rec_val=rec_val, batch_size=batch_size
      )
  
      acc = eval_acc(model, params, val_data, batch_fn)
      assert acc > cfg.expected_acc
      return acc
  
file_path: tvm/tests/python/nightly/quantization/test_quantization_accuracy.py
imports: from collections import namedtuple
  import tvm
  from tvm import relay
  from tvm.relay import quantize
  import mxnet
  from mxnet import gluon
  import logging
  import os
  import tvm.testing
label_desc: Use image node_id 4 for calling a global function with example usage: test_quantize_acc(cfg, rec_val) and returns: acc