code: def _save_params(
      net, best_map, current_map, epoch, save_interval, prefix
  ):
      current_map = float(current_map)
      if current_map > best_map[0]:
          best_map[0] = current_map
          net.save_params(
              "{:s}_{:04d}_{:.4f}best.params".format(
                  prefix, epoch, current_map
              )
          )
          with open(prefix + "_best_map.log", "a") as log_file:
              log_file.write(
                  "{:04d}:\t{:.4f}\n".format(epoch, current_map)
              )
      if save_interval and epoch % save_interval == 0:
          net.save_params(
              "{:s}_{:04d}_{:.4f}.params".format(
                  prefix, epoch, current_map
              )
          )
  
file_path: gluon-cv/gluoncv/auto/estimators/ssd/utils.py
imports: import os
  import mxnet
  from mxnet import gluon
  from mxnet import autograd
  from ....data.batchify import Tuple, Stack, Pad
  from ....data.transforms.presets.ssd import SSDDefaultTrainTransform
  from ....data.transforms.presets.ssd import SSDDefaultValTransform
  from ....data.transforms.presets.ssd import SSDDALIPipeline
  from ....None import data
  from ....utils.metrics.voc_detection import VOC07MApMetric
  from ....utils.metrics.coco_detection import COCODetectionMetric
label_desc: Use image node_id 5 for calling a global function with example usage: _save_params(net, best_map, current_map, epoch, save_interval, prefix) without return types