code: def mock_openai_response(
      input: List[str], model: str = "text-embedding-ada-002", **kwargs
  ) -> dict:
      dict_response = {
          "object": "list",
          "data": [
              {
                  "object": "embedding",
                  "index": i,
                  "embedding": np.random.rand(1536).tolist(),
              }
              for i in range(len(input))
          ],
          "model": model,
          "usage": {"prompt_tokens": 4, "total_tokens": 4},
      }
  
      return dict_response
  
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 1 for calling a global function with example usage: mock_openai_response(input, model) and returns: dict_response