def METHOD_NAME():
    here = Path(__file__).resolve().parent
    mocked_model_folder = here / "samples/test_get_tokenizer_from_path"
    with mock.patch("haystack.modeling.model.feature_extraction.transformers") as mocked_tf:
        mocked_tf.TestTokenizer.__class__.__name__ = "Test Class"
        FeatureExtractor(pretrained_model_name_or_path=mocked_model_folder, keep_accents=True)
        mocked_tf.TestTokenizerFast.from_pretrained.assert_called_with(
            pretrained_model_name_or_path=str(mocked_model_folder),
            revision=None,
            use_fast=True,
            use_auth_token=None,
            keep_accents=True,
        )