def get_nested_key_vals(conf, keys):
    """Get nested key value of the configuration

    Args:
        conf (dict): mappings config dict
        keys (list): nested keys

    Returns:
        env_vars (dict): nested dict of env vars to be exported
    """

    env_vars_dict = conf
    for key in keys:
        env_vars_dict = env_vars_dict[key]

    return env_vars_dict