def METHOD_NAME(config: ConfigRoot):
    for node_config in config.all_nodes_config_folders():
        node_config_file = node_config / 'config.toml'
        data = utils.read_toml_file(node_config_file)
        node_config_toml.patch_config(data, config)
        utils.write_toml_file(node_config_file, data)
        api_config_file = node_config / 'api.toml'
        data = utils.read_toml_file(api_config_file)
        node_config_toml.patch_api(data, config)
        utils.write_toml_file(api_config_file, data)
        enable_epochs_config_file = node_config / 'enableEpochs.toml'
        data = utils.read_toml_file(enable_epochs_config_file)
        node_config_toml.patch_enable_epochs(data, config)
        utils.write_toml_file(enable_epochs_config_file, data)
        genesis_smart_contracts_file = node_config / 'genesisSmartContracts.json'
        data = utils.read_json_file(genesis_smart_contracts_file)
        genesis_smart_contracts_json.patch(data, config)
        utils.write_json_file(genesis_smart_contracts_file, data)