code: def test_to_dict_with_custom_init_parameters(self):
      component = SentenceTransformersTextEmbedder(
          model="model",
          device="cuda",
          token=True,
          prefix="prefix",
          suffix="suffix",
          batch_size=64,
          progress_bar=False,
          normalize_embeddings=True,
      )
      data = component.to_dict()
      assert data == {
          "type": "haystack.components.embedders.sentence_transformers_text_embedder.SentenceTransformersTextEmbedder",
          "init_parameters": {
              "model": "model",
              "device": "cuda",
              "token": True,
              "prefix": "prefix",
              "suffix": "suffix",
              "batch_size": 64,
              "progress_bar": False,
              "normalize_embeddings": True,
          },
      }
  
file_path: haystack/test/components/embedders/test_sentence_transformers_text_embedder.py
imports: from unittest.mock import patch, MagicMock
  import pytest
  import numpy
  from haystack.components.embedders.sentence_transformers_text_embedder import SentenceTransformersTextEmbedder
label_desc: Use image node_id 4 for calling the TestSentenceTransformersTextEmbedder obj's underlying member method code with example usage: obj.test_to_dict_with_custom_init_parameters() without return types