def merge_configs(config: Dict[str, Any], default_config: Dict[str, Any]) -> Dict[str, Any]:
for key in default_config:<EOL><INDENT>if key in config:<EOL><INDENT>if isinstance(config[key], dict) and isinstance(default_config[key], dict):<EOL><INDENT>merge_configs(config[key], default_config[key])<EOL><DEDENT><DEDENT>else:<EOL><INDENT>config[key]: Any = default_config[key]<EOL><DEDENT><DEDENT>return config<EOL>
Merges a `default` config with DAG config. Used to set default values
for a group of DAGs.

:param config: config to merge in default values
:type config:  Dict[str, Any]
:param default_config: config to merge default values from
:type default_config: Dict[str, Any]
:returns: dict with merged configs
:type: Dict[str, Any]