code: def main():
      """SiamRPN test.
  
      function
      ----------
          record the output of the model. The output information of each video is recorded in the txt
      corresponding to the video name.
          if you want to evaluation, you need to python benchmark.py according to txt of text result.
          Currently only supports test OTB 2015 dataset
  
      Parameters
      ----------
      dataset_root : str, default '~/mxnet/datasets/OTB2015'
                     Path to folder test the dataset.
      model_path :   str, Path of test model .
      results_path:  str, Path to store txt of test reslut .
      """
      opt = parse_args()
      if opt.use_gpu:
          ctx = mx.gpu()
      else:
          ctx = mx.cpu()
      # dataloader
      dataset = OTBDataset(
          name=opt.dataset,
          dataset_root=opt.dataset_root,
          load_img=False,
      )
      net = get_model(opt.model_name, pretrained=True)
      net.collect_params().reset_ctx(ctx)
      if opt.mode == "hybrid":
          net.hybridize(static_alloc=True, static_shape=True)
      if opt.model_path:
          net.load_parameters(opt.model_path, ctx=ctx)
          print(
              "Pre-trained model %s is successfully loaded."
              % (opt.model_path)
          )
      else:
          print(
              "Pre-trained model is successfully loaded from the model zoo."
          )
      # bulid tracker
      tracker = build_tracker(net)
      # record the output of the model.
      test(dataset, tracker, opt, ctx)
  
file_path: gluon-cv/scripts/tracking/siamrpn/test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import argparse
  import os
  import numpy
  import mxnet
  from gluoncv.model_zoo.siamrpn.siamrpn_tracker import SiamRPNTracker
  from gluoncv.data.otb.tracking import OTBTracking
  from gluoncv.model_zoo.siamrpn.siamrpn_tracker import get_axis_aligned_bbox
  from gluoncv.model_zoo import get_model
  from gluoncv.utils.filesystem import try_import_cv2
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types