code: def yaml_to_str(data: Mapping) -> str:
      
      return yaml.dump(data, Dumper=ruamel.yaml.RoundTripDumper)
docs: Return the given given config as YAML str.
  
      :param data: configuration dict
      :return: given configuration as yaml str