code: def load_network(network, ctx):
      network.load_parameters(
          "params/resnet50.params",
          ctx=ctx,
          allow_missing=True,
          ignore_extra=True,
      )
      return network
  
file_path: gluon-cv/scripts/re-id/baseline/test.py
imports: from __future__ import print_function, division
  import mxnet
  import numpy
  from mxnet import gluon, nd
  from mxnet.gluon import nn
  from mxnet.gluon.data.vision import transforms
  from networks import resnet18, resnet34, resnet50
  import gluoncv
  from gluoncv.data.market1501.data_read import ImageTxtDataset
  import time, os, sys
  import scipy.io
  from os import path
label_desc: Use image node_id 2 for calling a global function with example usage: load_network(network, ctx) and returns: network