def process_configs(
    configs: Iterable[str], deterministic: bool = None, benchmark: bool = None
) -> Dict:
    """Merges YAML configs and prepares env."""
    # there is no way to set deterministic/benchmark flags with a runner,
    # so do it manually
    utils.prepare_cudnn(deterministic, benchmark)

    config = {}
    for config_path in configs:
        config_part = utils.load_config(config_path, ordered=True)
        config = utils.merge_dicts(config, config_part)

    return config
Merges YAML configs and prepares env.
catalyst/contrib/scripts/run.py