code: def test_run_fails_without_warm_up(self):
      generator = HuggingFaceLocalGenerator(
          model="google/flan-t5-base",
          task="text2text-generation",
          generation_kwargs={"max_new_tokens": 100},
      )
  
      with pytest.raises(
          RuntimeError,
          match="The generation model has not been loaded.",
      ):
          generator.run(prompt="irrelevant")
  
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 21 for calling the TestHuggingFaceLocalGenerator obj's underlying member method code with example usage: obj.test_run_fails_without_warm_up() without return types