class_docstr: Example:
  
  ```py
  from transformers.tools import TextSummarizationTool
  
  summarizer = TextSummarizationTool()
  summarizer(long_text)
  ```
code: def encode(self, text):
      return self.pre_processor(
          text, return_tensors="pt", truncation=True
      )
  
imports: from ..models.auto import AutoModelForSeq2SeqLM, AutoTokenizer
  from .base import PipelineTool
label_desc: Use image node_id 1 for calling the TextSummarizationTool obj's underlying member method code with example usage: obj.encode(text) and returns: self