code: def mock_check_valid_model():
      with patch(
          "haystack.components.embedders.hugging_face_tei_document_embedder.check_valid_model",
          MagicMock(return_value=None),
      ) as mock:
          yield mock
  
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 1 for calling a global function with example usage: mock_check_valid_model() without return types