import copy


def with_base_config(base_config, extra_config):
    """Returns dict with updates applied, helpful for one-liners"""
    config = copy.deepcopy(base_config)
    config.update(extra_config)
    return config