code: def test_run_wrong_input_format(self):
      embedder = OpenAIDocumentEmbedder(api_key="fake-api-key")
  
      # wrong formats
      string_input = "text"
      list_integers_input = [1, 2, 3]
  
      with pytest.raises(
          TypeError,
          match="OpenAIDocumentEmbedder expects a list of Documents as input",
      ):
          embedder.run(documents=string_input)
  
      with pytest.raises(
          TypeError,
          match="OpenAIDocumentEmbedder expects a list of Documents as input",
      ):
          embedder.run(documents=list_integers_input)
  
file_path: haystack/test/components/embedders/test_openai_document_embedder.py
imports: import os
  from typing import List
  import numpy
  import pytest
  from openai import OpenAIError
  from haystack import Document
  from haystack.components.embedders.openai_document_embedder import OpenAIDocumentEmbedder
label_desc: Use image node_id 8 for calling the TestOpenAIDocumentEmbedder obj's underlying member method code with example usage: obj.test_run_wrong_input_format() without return types