code: def _test_model_list(
      model_list, use_cuda, x, pretrained, num_classes, **kwargs
  ):
      cfg = get_cfg_defaults()
      for model in model_list:
          cfg.CONFIG.MODEL.NAME = model
          cfg.CONFIG.MODEL.PRETRAINED = pretrained
          cfg.CONFIG.DATA.NUM_CLASSES = num_classes
          net = get_model(cfg).eval()
  
          if use_cuda:
              net.cuda()
              x = x.cuda()
          with torch.no_grad():
              net(x)
  
file_path: gluon-cv/tests/model_zoo_torch/test_model_zoo_torch.py
imports: from __future__ import print_function
  import warnings
  import logging
  import torch
  import torch.nn
  from gluoncv.torch.model_zoo import get_model, get_model_list
  from gluoncv.torch.engine.config import get_cfg_defaults
label_desc: Use image node_id 2 for calling a global function with example usage: _test_model_list(model_list, use_cuda, x, pretrained, num_classes) without return types