docstr: if not specified, return_full_text is set to False for text-generation task
  (only generated text is returned, excluding prompt)
docstr_tok: ["if","not","specified",",","return_full_text","is","set","to","False","for","text-generation","task","(","only","generated","text","is","returned",",","excluding","prompt",")"]
code: def test_init_set_return_full_text(self):
      """
      if not specified, return_full_text is set to False for text-generation task
      (only generated text is returned, excluding prompt)
      """
      generator = HuggingFaceLocalGenerator(task="text-generation")
  
      assert generator.generation_kwargs == {"return_full_text": False}
  
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 10 for calling the TestHuggingFaceLocalGenerator obj's underlying member method code with example usage: obj.test_init_set_return_full_text() without return types