code: def test_to_dict_with_custom_init_parameters(
      self, mock_check_valid_model
  ):
      component = HuggingFaceTEITextEmbedder(
          model="sentence-transformers/all-mpnet-base-v2",
          url="https://some_embedding_model.com",
          token="fake-api-token",
          prefix="prefix",
          suffix="suffix",
      )
  
      data = component.to_dict()
  
      assert data == {
          "type": "haystack.components.embedders.hugging_face_tei_text_embedder.HuggingFaceTEITextEmbedder",
          "init_parameters": {
              "model": "sentence-transformers/all-mpnet-base-v2",
              "url": "https://some_embedding_model.com",
              "prefix": "prefix",
              "suffix": "suffix",
          },
      }
  
file_path: haystack/test/components/embedders/test_hugging_face_tei_text_embedder.py
imports: from unittest.mock import MagicMock, patch
  import numpy
  import pytest
  from huggingface_hub.utils import RepositoryNotFoundError
  from haystack.components.embedders.hugging_face_tei_text_embedder import HuggingFaceTEITextEmbedder
label_desc: Use image node_id 6 for calling the TestHuggingFaceTEITextEmbedder obj's underlying member method code with example usage: obj.test_to_dict_with_custom_init_parameters(mock_check_valid_model) without return types