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