def METHOD_NAME():
    nlp_configuration={
        "nlp_engine_name": "transformers",
        "models": [
            {
                "lang_code": "en",
                "model_name": {  # keys should contain transformers and spacy
                    "not_spacy": "en_core_web_sm",
                    "transformers": "dslim/bert-base-NER",
                },
            }
        ],
    }
    with pytest.raises(ValueError):
        NlpEngineProvider(nlp_configuration=nlp_configuration).create_engine()