code: def save_conf(fn=None):
      
      if fn is None:
          fn = cfile()
      try:
          os.makedirs(os.path.dirname(fn))
      except (OSError, IOError):
          pass
      with open(fn, 'w') as f:
          yaml.dump(conf, f)
docs: Save current configuration to file as YAML
  
      If not given, uses current config directory, ``confdir``, which can be
      set by INTAKE_CONF_DIR.