def METHOD_NAME(self):
    embedder = SentenceTransformersDocumentEmbedder(model_name_or_path="model")
    string_input = "text"
    list_integers_input = [1, 2, 3]
    with pytest.raises(
        TypeError, match="SentenceTransformersDocumentEmbedder expects a list of Documents as input"
    ):
        embedder.run(documents=string_input)
    with pytest.raises(
        TypeError, match="SentenceTransformersDocumentEmbedder expects a list of Documents as input"
    ):
        embedder.run(documents=list_integers_input)