<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_config(config, path, final=False):
 """Write Renku configuration."""

    with open(config_path(path, final=final), 'w+') as configfile:
        yaml.dump(config, configfile, default_flow_style=False)