def test_validate_config(config: Dict[Text, Any], raises: bool):
    if not raises:
        LexicalSyntacticFeaturizer.validate_config(config)
    else:
        with pytest.raises(InvalidConfigException):
            LexicalSyntacticFeaturizer.validate_config(config)