code: def test_to_dict_not_serialize_token(self):
      component = SentenceTransformersTextEmbedder(
          model="model", token="awesome-token"
      )
      data = component.to_dict()
      assert data == {
          "type": "haystack.components.embedders.sentence_transformers_text_embedder.SentenceTransformersTextEmbedder",
          "init_parameters": {
              "model": "model",
              "device": "cpu",
              "token": None,
              "prefix": "",
              "suffix": "",
              "batch_size": 32,
              "progress_bar": True,
              "normalize_embeddings": False,
          },
      }
  
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 5 for calling the TestSentenceTransformersTextEmbedder obj's underlying member method code with example usage: obj.test_to_dict_not_serialize_token() without return types