<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_max_ids(max_ids):
 """ Set max ids of the current downloads :param max_ids: A dictionary mapping users to ids """

    config.read(CONFIG)
    for user, max_id in max_ids.items():
        config.set(SECTIONS['INCREMENTS'], user, str(max_id))
    with open(CONFIG, 'w') as f:
        config.write(f)