code: def test_stop_sequence_stopping_criteria(self):
      prompt = """Hello I believe in"""
      text_generator = pipeline(
          "text-generation",
          model="hf-internal-testing/tiny-random-gpt2",
      )
      output = text_generator(prompt)
      self.assertEqual(
          output,
          [
              {
                  "generated_text": "Hello I believe in fe fe fe fe fe fe fe fe fe fe fe fe"
              }
          ],
      )
  
      output = text_generator(prompt, stop_sequence=" fe")
      self.assertEqual(
          output, [{"generated_text": "Hello I believe in fe"}]
      )
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/tests/pipelines/test_pipelines_text_generation.py
imports: import unittest
  from transformers import MODEL_FOR_CAUSAL_LM_MAPPING, TF_MODEL_FOR_CAUSAL_LM_MAPPING, TextGenerationPipeline, pipeline
  from transformers.testing_utils import require_accelerate, require_tf, require_torch, require_torch_gpu, require_torch_or_tf
  from .test_pipelines_common import ANY, PipelineTestCaseMeta
label_desc: Use image node_id 4 for calling the TextGenerationPipelineTests obj's underlying member method code with example usage: obj.test_stop_sequence_stopping_criteria() without return types