def METHOD_NAME(self):
    component = SentenceTransformersDocumentEmbedder(model_name_or_path="model")
    data = component.to_dict()
    assert data == {
        "type": "SentenceTransformersDocumentEmbedder",
        "init_parameters": {
            "model_name_or_path": "model",
            "device": "cpu",
            "use_auth_token": None,
            "batch_size": 32,
            "progress_bar": True,
            "normalize_embeddings": False,
            "embedding_separator": "\n",
            "metadata_fields_to_embed": [],
        },
    }