code: def test_to_dict_with_custom_init_parameters(self):
      component = OpenAITextEmbedder(
          api_key="fake-api-key",
          model="model",
          organization="fake-organization",
          prefix="prefix",
          suffix="suffix",
      )
      data = component.to_dict()
      assert data == {
          "type": "haystack.components.embedders.openai_text_embedder.OpenAITextEmbedder",
          "init_parameters": {
              "model": "model",
              "organization": "fake-organization",
              "prefix": "prefix",
              "suffix": "suffix",
          },
      }
  
file_path: haystack/test/components/embedders/test_openai_text_embedder.py
imports: import os
  import pytest
  from openai import OpenAIError
  from haystack.components.embedders.openai_text_embedder import OpenAITextEmbedder
label_desc: Use image node_id 5 for calling the TestOpenAITextEmbedder obj's underlying member method code with example usage: obj.test_to_dict_with_custom_init_parameters() without return types