def METHOD_NAME():
    with mock.patch("haystack.modeling.model.feature_extraction.AutoConfig") as mocked_ac:
        from haystack.modeling.model.feature_extraction import FEATURE_EXTRACTORS
        FEATURE_EXTRACTORS["test"] = mock.MagicMock()
        FEATURE_EXTRACTORS["test"].__name__ = "Test"
        mocked_ac.from_pretrained.return_value.model_type = "test"
        FeatureExtractor(pretrained_model_name_or_path="test-model-name")
        FEATURE_EXTRACTORS["test"].from_pretrained.assert_called_with(
            pretrained_model_name_or_path="test-model-name", revision=None, use_fast=True, use_auth_token=None
        )
        # clean up
        FEATURE_EXTRACTORS.pop("test")