def merge_config(<EOL>config: Mapping[str, Any],<EOL>override_config: Mapping[str, Any] = None,<EOL>override_config_fn: str = None,<EOL>) -> Mapping[str, Any]:
if override_config_fn:<EOL><INDENT>with open(override_config_fn, "<STR_LIT:r>") as f:<EOL><INDENT>override_config = yaml.load(f, Loader=yaml.SafeLoader)<EOL><DEDENT><DEDENT>if not override_config:<EOL><INDENT>log.info("<STR_LIT>")<EOL><DEDENT>return functools.reduce(rec_merge, (config, override_config))<EOL>
Override config with additional configuration in override_config or override_config_fn

    Used in script to merge CLI options with Config

    Args:
        config: original configuration
        override_config: new configuration to override/extend current config
        override_config_fn: new configuration filename as YAML file