code: def test_run_wrong_input_format(self, mock_check_valid_model):
      embedder = HuggingFaceTEITextEmbedder(
          model="BAAI/bge-small-en-v1.5",
          url="https://some_embedding_model.com",
          token="fake-api-token",
      )
  
      list_integers_input = [1, 2, 3]
  
      with pytest.raises(
          TypeError,
          match="HuggingFaceTEITextEmbedder expects a string as an input",
      ):
          embedder.run(text=list_integers_input)
  
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 8 for calling the TestHuggingFaceTEITextEmbedder obj's underlying member method code with example usage: obj.test_run_wrong_input_format(mock_check_valid_model) without return types