def merge_settings(settings_from_env, settings_from_cli):
    """
    Returns dictionary containing variables needed for trainrunner after merging
    values from the CLI and environemnt. CLI will take precidence as it is more
    direct
    :return: dictionary containing merged variables needed for trainrunner to
        run experiments
    """

    return {**settings_from_env, **settings_from_cli}