def METHOD_NAME(section, option, value, config_file):
    if not CONFIG.has_section(section):
        CONFIG.add_section(section)
    option_path = option.split(".")
    CONFIG.set(section, *option_path, _cast_value_helper(value))
    write_config(config_file)