code: def test_init_custom_token(self):
      generator = HuggingFaceLocalGenerator(
          model="google/flan-t5-base",
          task="text2text-generation",
          token="test-token",
      )
  
      assert generator.huggingface_pipeline_kwargs == {
          "model": "google/flan-t5-base",
          "task": "text2text-generation",
          "token": "test-token",
      }
  
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 2 for calling the TestHuggingFaceLocalGenerator obj's underlying member method code with example usage: obj.test_init_custom_token() without return types