code: def test_run_with_params(self, mock_chat_completion):
      component = OpenAIGenerator(
          api_key="test-api-key",
          generation_kwargs={"max_tokens": 10, "temperature": 0.5},
      )
      response = component.run("What's Natural Language Processing?")
  
      # 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, str) for reply in response["replies"]]
  
imports: import os
  from typing import List
  import pytest
  from openai import OpenAIError
  from haystack.components.generators import OpenAIGenerator
  from haystack.components.generators.utils import default_streaming_callback
  from haystack.dataclasses import StreamingChunk, ChatMessage
label_desc: Use image node_id 11 for calling the TestOpenAIGenerator obj's underlying member method code with example usage: obj.test_run_with_params(mock_chat_completion) without return types