code: def test_to_dict_with_parameters(self):
      component = AzureOpenAIChatGenerator(
          api_key="test-api-key",
          azure_endpoint="some-non-existing-endpoint",
          generation_kwargs={
              "max_tokens": 10,
              "some_test_param": "test-params",
          },
      )
      data = component.to_dict()
      assert data == {
          "type": "haystack.components.generators.chat.azure.AzureOpenAIChatGenerator",
          "init_parameters": {
              "api_version": "2023-05-15",
              "azure_endpoint": "some-non-existing-endpoint",
              "azure_deployment": "gpt-35-turbo",
              "organization": None,
              "streaming_callback": None,
              "generation_kwargs": {
                  "max_tokens": 10,
                  "some_test_param": "test-params",
              },
          },
      }
  
file_path: haystack/test/components/generators/chat/test_azure.py
imports: import os
  import pytest
  from openai import OpenAIError
  from haystack.components.generators.chat import AzureOpenAIChatGenerator
  from haystack.components.generators.utils import default_streaming_callback
  from haystack.dataclasses import ChatMessage
label_desc: Use image node_id 5 for calling the TestOpenAIChatGenerator obj's underlying member method code with example usage: obj.test_to_dict_with_parameters() without return types