code: def write_config(configfile, content):
      
      with open(configfile, 'w+') as ymlfile:
          yaml.dump(
              content,
              ymlfile,
              default_flow_style=False,
          )
docs: Write dict to a file in yaml format