def test_optional_mispelled_params_raise_error(
        self,
        cfg: DictConfig,
    ) -> None:
        """Check that warnings are raised for optional mispelled parameters."""
        optional_params = [
            'seed',
            'dist_timeout',
            'run_name',
            'num_retries',
            'loggers',
            'eval_gauntlet',
            'fsdp_config',
            'eval_loader',
        ]
        old_cfg = copy.deepcopy(cfg)
        for param in optional_params:
            orig_value = cfg.pop(param, None)
            updated_param = param + '-mispelling'
            cfg[updated_param] = orig_value
            with pytest.raises(ValueError):
                evaluate(cfg)
            # restore configs.
            cfg = copy.deepcopy(old_cfg)
Check that warnings are raised for optional mispelled parameters.
tests/a_scripts/eval/test_eval_inputs.py