docstr: Averages parameters from a list of .params file paths.
  
  Parameters
  ----------
  param_paths
      List of paths to parameter files.
  weights
      List of weights for the parameter average.
  
  Returns
  -------
  Averaged parameter dictionary.
docstr_tok: ["Averages","parameters","from","a","list","of",".params","file","paths",".","Parameters","--","--","--","--","--","param_paths","List","of","paths","to","parameter","files",".","weights","List","of","weights","for","the","parameter","average",".","Returns","--","--","--","-","Averaged","parameter","dictionary","."]
code: def average(
      self, param_paths: List[str], weights: List[float]
  ) -> Dict:
      r"""
      Averages parameters from a list of .params file paths.
  
      Parameters
      ----------
      param_paths
          List of paths to parameter files.
      weights
          List of weights for the parameter average.
  
      Returns
      -------
      Averaged parameter dictionary.
      """
      all_arg_params = []
  
      for path in param_paths:
          params = mx.nd.load(path)
          all_arg_params.append(params)
  
      avg_params = {}
      for k in all_arg_params[0]:
          arrays = [p[k] for p in all_arg_params]
          avg_params[k] = self.average_arrays(arrays, weights)
      return avg_params
  
imports: import glob
  import json
  import logging
  from typing import Dict, List, Tuple
  import mxnet
  import mxnet.gluon.nn
  import numpy
  from gluonts.core.component import validated
  from .callback import Callback
label_desc: Use image node_id 5 for calling the AveragingStrategy obj's underlying member method code with example usage: obj.average(param_paths, weights) and returns: avg_params