code: def save_params(
      net, logger, best_map, current_map, epoch, save_interval, prefix
  ):
      current_map = float(current_map)
      if current_map > best_map[0]:
          logger.info(
              "[Epoch {}] mAP {} higher than current best {} saving to {}".format(
                  epoch,
                  current_map,
                  best_map,
                  "{:s}_best.params".format(prefix),
              )
          )
          best_map[0] = current_map
          net.save_parameters("{:s}_best.params".format(prefix))
          with open(prefix + "_best_map.log", "a") as f:
              f.write("\n{:04d}:\t{:.4f}".format(epoch, current_map))
      if save_interval and (epoch + 1) % save_interval == 0:
          logger.info(
              "[Epoch {}] Saving parameters to {}".format(
                  epoch,
                  "{:s}_{:04d}_{:.4f}.params".format(
                      prefix, epoch, current_map
                  ),
              )
          )
          net.save_parameters(
              "{:s}_{:04d}_{:.4f}.params".format(
                  prefix, epoch, current_map
              )
          )
  
imports: import argparse
  import os
  import logging
  import time
  import numpy
  import mxnet
  from mxnet import gluon
  from mxnet.contrib import amp
  from distutils.version import LooseVersion
  import gluoncv
  from gluoncv import data
  from gluoncv import utils
  from gluoncv.model_zoo import get_model
  from gluoncv.data import batchify
  from gluoncv.data.transforms.presets.rcnn import MaskRCNNDefaultTrainTransform, MaskRCNNDefaultValTransform
  from gluoncv.utils.metrics.coco_instance import COCOInstanceMetric
  from gluoncv.utils.metrics.rcnn import RPNAccMetric, RPNL1LossMetric, RCNNAccMetric, RCNNL1LossMetric, MaskAccMetric, MaskFGAccMetric
  from gluoncv.utils.parallel import Parallel
  from gluoncv.data import COCODetection, VOCDetection
  from multiprocessing import Process
  from gluoncv.model_zoo.rcnn.mask_rcnn.data_parallel import ForwardBackwardTask
label_desc: Use image node_id 4 for calling a global function with example usage: save_params(net, logger, best_map, current_map, epoch, save_interval, prefix) without return types