code: def _test_model_list(model_list, ctx, x, pretrained=True, **kwargs):
      pretrained_models = gcv.model_zoo.pretrained_model_list()
      for model in model_list:
          if model in pretrained_models:
              net = gcv.model_zoo.get_model(
                  model, pretrained=True, **kwargs
              )
          else:
              net = gcv.model_zoo.get_model(model, **kwargs)
              with warnings.catch_warnings():
                  warnings.simplefilter("ignore")
                  net.initialize()
          net.collect_params().reset_ctx(ctx)
          net(x)
          mx.nd.waitall()
  
imports: from __future__ import print_function
  import warnings
  import logging
  import mxnet
  from mxnet.contrib.quantization import *
  from ..unittests.common import try_gpu, with_cpu
  import gluoncv
label_desc: Use image node_id 2 for calling a global function with example usage: _test_model_list(model_list, ctx, x, pretrained) without return types