def METHOD_NAME(data, path):
    with open(path, 'w') as fout:
        yaml.add_representer(quoted, quoted_presenter)
        yaml.dump_all(data, fout,
            default_flow_style=False,
            sort_keys=False,
            explicit_start=True)