code: def test_to_dict(self):
      component = OpenAIDocumentEmbedder(api_key="fake-api-key")
      data = component.to_dict()
      assert data == {
          "type": "haystack.components.embedders.openai_document_embedder.OpenAIDocumentEmbedder",
          "init_parameters": {
              "api_base_url": None,
              "model": "text-embedding-ada-002",
              "organization": None,
              "prefix": "",
              "suffix": "",
              "batch_size": 32,
              "progress_bar": True,
              "meta_fields_to_embed": [],
              "embedding_separator": "\n",
          },
      }
  
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 4 for calling the TestOpenAIDocumentEmbedder obj's underlying member method code with example usage: obj.test_to_dict() without return types