code: def cfgdump(path, config):
      
      dump = yaml_dump(config)
      if not os.path.exists(path):
          os.makedirs(path)
      with open(os.path.join(path, 'config.yaml'), 'w') as outf:
          outf.write(dump)
      print(dump)
docs: Create output directory path and output there the config.yaml file.