code: def test_to_dict_with_custom_init_parameters(
      self, mock_check_valid_model
  ):
      component = HuggingFaceTEIDocumentEmbedder(
          model="sentence-transformers/all-mpnet-base-v2",
          url="https://some_embedding_model.com",
          token="fake-api-token",
          prefix="prefix",
          suffix="suffix",
          batch_size=64,
          progress_bar=False,
          meta_fields_to_embed=["test_field"],
          embedding_separator=" | ",
      )
  
      data = component.to_dict()
  
      assert data == {
          "type": "haystack.components.embedders.hugging_face_tei_document_embedder.HuggingFaceTEIDocumentEmbedder",
          "init_parameters": {
              "model": "sentence-transformers/all-mpnet-base-v2",
              "url": "https://some_embedding_model.com",
              "prefix": "prefix",
              "suffix": "suffix",
              "batch_size": 64,
              "progress_bar": False,
              "meta_fields_to_embed": ["test_field"],
              "embedding_separator": " | ",
          },
      }
  
imports: from unittest.mock import MagicMock, patch
  import numpy
  import pytest
  from huggingface_hub.utils import RepositoryNotFoundError
  from haystack.components.embedders.hugging_face_tei_document_embedder import HuggingFaceTEIDocumentEmbedder
  from haystack.dataclasses import Document
label_desc: Use image node_id 6 for calling the TestHuggingFaceTEIDocumentEmbedder obj's underlying member method code with example usage: obj.test_to_dict_with_custom_init_parameters(mock_check_valid_model) without return types