code: def test_run_wrong_input_format(self):
      embedder = SentenceTransformersDocumentEmbedder(model="model")
  
      string_input = "text"
      list_integers_input = [1, 2, 3]
  
      with pytest.raises(
          TypeError,
          match="SentenceTransformersDocumentEmbedder expects a list of Documents as input",
      ):
          embedder.run(documents=string_input)
  
      with pytest.raises(
          TypeError,
          match="SentenceTransformersDocumentEmbedder expects a list of Documents as input",
      ):
          embedder.run(documents=list_integers_input)
  
file_path: haystack/test/components/embedders/test_sentence_transformers_document_embedder.py
imports: from unittest.mock import patch, MagicMock
  import pytest
  import numpy
  from haystack import Document
  from haystack.components.embedders.sentence_transformers_document_embedder import SentenceTransformersDocumentEmbedder
label_desc: Use image node_id 8 for calling the TestSentenceTransformersDocumentEmbedder obj's underlying member method code with example usage: obj.test_run_wrong_input_format() without return types