def test_single_config_models_fail(tmp_path, cls, config):
    """Test fail on passing unsupported config type."""
    with pytest.raises(ValueError):
        _ = cls(**config)
Test fail on passing unsupported config type.
tests/tests_pytorch/models/test_hparams.py