code: def test_init_generation_kwargs(self):
      generator = HuggingFaceLocalGenerator(
          task="text2text-generation",
          generation_kwargs={"max_new_tokens": 100},
      )
  
      assert generator.generation_kwargs == {"max_new_tokens": 100}
  
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 9 for calling the TestHuggingFaceLocalGenerator obj's underlying member method code with example usage: obj.test_init_generation_kwargs() without return types