docstr: Test that warm_up method sets the `stopping_criteria_list` attribute
  if `stop_words` is provided
docstr_tok: ["Test","that","warm_up","method","sets","the","`","stopping_criteria_list","`","attribute","if","`","stop_words","`","is","provided"]
code: def test_warm_up_set_stopping_criteria_list(
      self,
      pipeline_mock,
      stop_words_criteria_mock,
      stopping_criteria_list_mock,
  ):
      """
      Test that warm_up method sets the `stopping_criteria_list` attribute
      if `stop_words` is provided
      """
      generator = HuggingFaceLocalGenerator(
          model="google/flan-t5-base",
          task="text2text-generation",
          stop_words=["coca", "cola"],
      )
  
      generator.warm_up()
  
      stop_words_criteria_mock.assert_called_once()
      stopping_criteria_list_mock.assert_called_once()
  
      assert hasattr(generator, "stopping_criteria_list")
  
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 23 for calling the TestHuggingFaceLocalGenerator obj's underlying member method code with example usage: obj.test_warm_up_set_stopping_criteria_list(pipeline_mock, stop_words_criteria_mock, stopping_criteria_list_mock) without return types