code: def prepare_input_sequence(
      texts: List[str], text_processor: Callable[[str], List[int]]
  ) -> Tuple[Tensor, Tensor]:
      d = []
      for text in texts:
          d.append(torch.IntTensor(text_processor(text)[:]))
  
      text_padded, input_lengths = pad_sequences(d)
      return text_padded, input_lengths
  
file_path: audio/examples/pipeline_tacotron2/utils.py
imports: import logging
  import os
  import shutil
  from typing import Callable, List, Tuple
  import torch
  from torch import Tensor
label_desc: Use image node_id 3 for calling a global function with example usage: prepare_input_sequence(texts, text_processor) and returns: text_padded,  input_lengths