code: def test_to_dict(self):
      component = SentenceTransformersDocumentEmbedder(model="model")
      data = component.to_dict()
      assert data == {
          "type": "haystack.components.embedders.sentence_transformers_document_embedder.SentenceTransformersDocumentEmbedder",
          "init_parameters": {
              "model": "model",
              "device": "cpu",
              "token": None,
              "prefix": "",
              "suffix": "",
              "batch_size": 32,
              "progress_bar": True,
              "normalize_embeddings": False,
              "embedding_separator": "\n",
              "meta_fields_to_embed": [],
          },
      }
  
file_path: haystack/test/components/embedders/test_sentence_transformers_document_embedder.py
imports: from unittest.mock import patch, MagicMock
  import pytest
  import numpy
  from haystack import Document
  from haystack.components.embedders.sentence_transformers_document_embedder import SentenceTransformersDocumentEmbedder
label_desc: Use image node_id 3 for calling the TestSentenceTransformersDocumentEmbedder obj's underlying member method code with example usage: obj.test_to_dict() without return types