code: def save_params_to_file(self, fname: str):
          
          if self.aux_params is not None:
              utils.save_params(self.params.copy(), fname, self.aux_params.copy())
          else:
              utils.save_params(self.params.copy(), fname)
          logging.info('Saved params to "%s"', fname)
docs: Saves model parameters to file.
  
          :param fname: Path to save parameters to.