code: def test_run_with_generation_kwargs(self):
      generator = HuggingFaceLocalGenerator(
          model="google/flan-t5-base",
          task="text2text-generation",
          generation_kwargs={"max_new_tokens": 100},
      )
  
      # create the pipeline object (simulating the warm_up)
      generator.pipeline = Mock(
          return_value=[{"generated_text": "Rome"}]
      )
  
      generator.run(
          prompt="irrelevant",
          generation_kwargs={"max_new_tokens": 200, "temperature": 0.5},
      )
  
      generator.pipeline.assert_called_once_with(
          "irrelevant",
          max_new_tokens=200,
          temperature=0.5,
          stopping_criteria=None,
      )
  
imports: from unittest.mock import patch, Mock
  import pytest
  import torch
  from transformers import PreTrainedTokenizerFast
  from haystack.components.generators.hugging_face_local import HuggingFaceLocalGenerator, StopWordsCriteria
label_desc: Use image node_id 20 for calling the TestHuggingFaceLocalGenerator obj's underlying member method code with example usage: obj.test_run_with_generation_kwargs() without return types