code: def test_to_dict_default(self, model_info_mock):
      model_info_mock.return_value.pipeline_tag = "text2text-generation"
  
      component = HuggingFaceLocalGenerator()
      data = component.to_dict()
  
      assert data == {
          "type": "haystack.components.generators.hugging_face_local.HuggingFaceLocalGenerator",
          "init_parameters": {
              "huggingface_pipeline_kwargs": {
                  "model": "google/flan-t5-base",
                  "task": "text2text-generation",
                  "token": None,
              },
              "generation_kwargs": {},
              "stop_words": 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 12 for calling the TestHuggingFaceLocalGenerator obj's underlying member method code with example usage: obj.test_to_dict_default(model_info_mock) without return types