code: def test_to_dict(self):
      component = OpenAITextEmbedder(api_key="fake-api-key")
      data = component.to_dict()
      assert data == {
          "type": "haystack.components.embedders.openai_text_embedder.OpenAITextEmbedder",
          "init_parameters": {
              "model": "text-embedding-ada-002",
              "organization": None,
              "prefix": "",
              "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 4 for calling the TestOpenAITextEmbedder obj's underlying member method code with example usage: obj.test_to_dict() without return types