code: def save(self, force=False):
          
          if (not self._success) and (not force):
              raise ConfigError((
                  'The config file appears to be corrupted:\n\n'
                  '    {fname}\n\n'
                  'Before attempting to save the configuration, please either '
                  'fix the config file manually, or overwrite it with a blank '
                  'configuration as follows:\n\n'
                  '    from dustmaps.config import config\n'
                  '    config.reset()\n\n'
                  ).format(fname=self.fname))
  
          with open(self.fname, 'w') as f:
              json.dump(self._options, f, indent=2)
docs: Saves the configuration to a JSON, in the standard config location.
  
          Args:
              force (Optional[:obj:`bool`]): Continue writing, even if the original
                  config file was not loaded properly. This is dangerous, because
                  it could cause the previous configuration options to be lost.
                  Defaults to :obj:`False`.
  
          Raises:
              :obj:`ConfigError`: if the configuration file was not successfully
                                  loaded on initialization of the class, and
                                  :obj:`force` is :obj:`False`.