docstr: huggingface_pipeline_kwargs represent the main configuration of this component.
  If they are provided, they should override other init parameters.
docstr_tok: ["huggingface_pipeline_kwargs","represent","the","main","configuration","of","this","component",".","If","they","are","provided",",","they","should","override","other","init","parameters","."]
code: def test_init_huggingface_pipeline_kwargs_override_other_parameters(
      self,
  ):
      """
      huggingface_pipeline_kwargs represent the main configuration of this component.
      If they are provided, they should override other init parameters.
      """
  
      huggingface_pipeline_kwargs = {
          "model": "gpt2",
          "task": "text-generation",
          "device": "cuda:0",
          "token": "another-test-token",
      }
  
      generator = HuggingFaceLocalGenerator(
          model="google/flan-t5-base",
          task="text2text-generation",
          device="cpu",
          token="test-token",
          huggingface_pipeline_kwargs=huggingface_pipeline_kwargs,
      )
  
      assert (
          generator.huggingface_pipeline_kwargs
          == huggingface_pipeline_kwargs
      )
  
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 8 for calling the TestHuggingFaceLocalGenerator obj's underlying member method code with example usage: obj.test_init_huggingface_pipeline_kwargs_override_other_parameters() without return types