code: def mock_embedding_generation(text, **kwargs):
      response = np.random.rand(384)
      return response
  
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 2 for calling a global function with example usage: mock_embedding_generation(text) and returns: response