code: def summarize(self, text: str) -> str:
      # Run inference
      model_output = self.model(text, min_length=5, max_length=15)
  
      # Post-process output to return only the summary text
      summary = model_output[0]["summary_text"]
  
      return summary
  
file_path: ray/doc/source/serve/doc_code/getting_started/models.py
imports: from transformers import pipeline
  from transformers import pipeline
label_desc: Use image node_id 2 for calling the Summarizer obj's underlying member method code with example usage: obj.summarize(text) and returns: summary