code: def run_pipeline_test(self, summarizer, _):
      model = summarizer.model
  
      outputs = summarizer(
          "(CNN)The Palestinian Authority officially became"
      )
      self.assertEqual(outputs, [{"summary_text": ANY(str)}])
  
      outputs = summarizer(
          "(CNN)The Palestinian Authority officially became ",
          num_beams=2,
          min_length=2,
          max_length=5,
      )
      self.assertEqual(outputs, [{"summary_text": ANY(str)}])
  
      if not isinstance(
          model.config, (T5Config, LongT5Config, LEDConfig)
      ):
          # LED, T5, LongT5 can handle it.
          # Too long.
          with self.assertRaises(Exception):
              outputs = summarizer("This " * 1000)
      outputs = summarizer(
          "This " * 1000, truncation=TruncationStrategy.ONLY_FIRST
      )
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/tests/pipelines/test_pipelines_summarization.py
imports: import unittest
  from transformers import MODEL_FOR_SEQ_TO_SEQ_CAUSAL_LM_MAPPING, TF_MODEL_FOR_SEQ_TO_SEQ_CAUSAL_LM_MAPPING, LEDConfig, LongT5Config, SummarizationPipeline, T5Config, pipeline
  from transformers.testing_utils import require_tf, require_torch, slow, torch_device
  from transformers.tokenization_utils import TruncationStrategy
  from .test_pipelines_common import ANY, PipelineTestCaseMeta
label_desc: Use image node_id 2 for calling the SummarizationPipelineTests obj's underlying member method code with example usage: obj.run_pipeline_test(summarizer, _) without return types