code: def truncate_input(self, texts, tokenizer):
      return tokenizer.batch_decode(
          tokenizer(
              texts,
              max_length=self.config["src_len"],
              truncation=True,
              add_special_tokens=False,
          )["input_ids"]
      )
  
file_path: TextBox/textbox/model/context_tuning.py
imports: import torch
  import torch.nn
  import torch.nn.functional
  from .pretrained_models import Pretrained_Models
  from transformers import BertTokenizer, BertForMaskedLM, BertModel, BartModel, RobertaTokenizer, RobertaForMaskedLM
label_desc: Use image node_id 2 for calling the Context_Tuning obj's underlying member method code with example usage: obj.truncate_input(texts, tokenizer) and returns: tokenizer