code: def test_run_with_params(self, chat_messages, mock_chat_completion):
      component = OpenAIChatGenerator(
          generation_kwargs={"max_tokens": 10, "temperature": 0.5}
      )
      response = component.run(chat_messages)
  
      # check that the component calls the OpenAI API with the correct parameters
      _, kwargs = mock_chat_completion.call_args
      assert kwargs["max_tokens"] == 10
      assert kwargs["temperature"] == 0.5
  
      # check that the component returns the correct response
      assert isinstance(response, dict)
      assert "replies" in response
      assert isinstance(response["replies"], list)
      assert len(response["replies"]) == 1
      assert [
          isinstance(reply, ChatMessage)
          for reply in response["replies"]
      ]
  
imports: import os
  import pytest
  from openai import OpenAIError
  from haystack.components.generators.chat import OpenAIChatGenerator
  from haystack.components.generators.utils import default_streaming_callback
  from haystack.dataclasses import ChatMessage, StreamingChunk
label_desc: Use image node_id 10 for calling the TestOpenAIChatGenerator obj's underlying member method code with example usage: obj.test_run_with_params(chat_messages, mock_chat_completion) without return types