def write_yaml_file(yaml_dict, file_yaml):
    path_yaml = os.path.dirname(file_yaml)
    if (not os.path.isdir(path_yaml)):
        os.makedirs(path_yaml)
    with open(file_yaml, 'w') as stream:
        yaml.dump(yaml_dict, stream, default_flow_style=False)
def write_yaml_file(yaml_dict, file_yaml):
    path_yaml = os.path.dirname(file_yaml)
    if (not os.path.isdir(path_yaml)):
        os.makedirs(path_yaml)
    with open(file_yaml, 'w') as stream:
        yaml.dump(yaml_dict, stream, default_flow_style=False)