code: def test_to_dict_with_custom_init_parameters(self):
      component = OpenAIDocumentEmbedder(
          api_key="fake-api-key",
          model="model",
          organization="my-org",
          prefix="prefix",
          suffix="suffix",
          batch_size=64,
          progress_bar=False,
          meta_fields_to_embed=["test_field"],
          embedding_separator=" | ",
      )
      data = component.to_dict()
      assert data == {
          "type": "haystack.components.embedders.openai_document_embedder.OpenAIDocumentEmbedder",
          "init_parameters": {
              "api_base_url": None,
              "model": "model",
              "organization": "my-org",
              "prefix": "prefix",
              "suffix": "suffix",
              "batch_size": 64,
              "progress_bar": False,
              "meta_fields_to_embed": ["test_field"],
              "embedding_separator": " | ",
          },
      }
  
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 5 for calling the TestOpenAIDocumentEmbedder obj's underlying member method code with example usage: obj.test_to_dict_with_custom_init_parameters() without return types