code: def save_plots(Figs, filenames, **kwargs):
      
      saved = []
      for key in list(Figs.keys()):
          try:
              plt.figure(num=Figs[key])
              fname = filenames[key]
              if set_env.IS_WIN:  # always truncate filenames if on Windows
                  fname = os.path.split(fname)[1]
              if not isServer:  # remove illegal ':' character for windows
                  fname = fname.replace(':', '_')
              if 'incl_directory' in kwargs.keys() and not set_env.IS_WIN:
                  if kwargs['incl_directory']:
                      pass # do not flatten file name
                  else:
                      fname = fname.replace('/', '-') # flatten file name
              else:
                  fname = fname.replace('/', '-') # flatten file name
              if 'dpi' in list(kwargs.keys()):
                  plt.savefig(fname, dpi=kwargs['dpi'])
              elif isServer:
                  plt.savefig(fname, dpi=240)
              else:
                  plt.savefig(fname)
              if verbose:
                  print(Figs[key], " saved in ", fname)
              saved.append(fname)
              plt.close(Figs[key])
          except Exception as ex:
              print(type(ex), ex)
              print('could not save: ', Figs[key], filenames[key])
              print("output file format not supported ")
      return saved
docs: Parameters
      ----------
      Figs : dict
          dictionary of plots, e.g. {'eqarea': 1, ...}
      filenames : dict
          dictionary of filenames, e.g. {'eqarea': 'mc01a_eqarea.svg', ...}
          dict keys should correspond with Figs