code: def test_init_fails_with_both_stopwords_and_stoppingcriteria(self):
      with pytest.raises(
          ValueError,
          match="Found both the `stop_words` init parameter and the `stopping_criteria` key in `generation_kwargs`",
      ):
          HuggingFaceLocalGenerator(
              task="text2text-generation",
              stop_words=["coca", "cola"],
              generation_kwargs={
                  "stopping_criteria": "fake-stopping-criteria"
              },
          )
  
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 11 for calling the TestHuggingFaceLocalGenerator obj's underlying member method code with example usage: obj.test_init_fails_with_both_stopwords_and_stoppingcriteria() without return types