code: def test_run(self, mock_check_valid_model):
      with patch(
          "huggingface_hub.InferenceClient.feature_extraction"
      ) as mock_embedding_patch:
          mock_embedding_patch.side_effect = mock_embedding_generation
  
          embedder = HuggingFaceTEITextEmbedder(
              model="BAAI/bge-small-en-v1.5",
              token="fake-api-token",
              prefix="prefix ",
              suffix=" suffix",
          )
  
          result = embedder.run(text="The food was delicious")
  
          mock_embedding_patch.assert_called_once_with(
              text="prefix The food was delicious suffix"
          )
  
      assert len(result["embedding"]) == 384
      assert all(isinstance(x, float) for x in result["embedding"])
  
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 7 for calling the TestHuggingFaceTEITextEmbedder obj's underlying member method code with example usage: obj.test_run(mock_check_valid_model) without return types