code: def batch_text_preproc_fn(inp: List[List[str]]) -> Tensor:
      return torch.cat([text_preproc_fn(elem) for elem in inp])
  
imports: import collections
  from typing import List
  import torch
  from captum.robust import AttackComparator, FGSM
  from tests.helpers.basic import assertTensorAlmostEqual, BaseTest
  from tests.helpers.basic_models import BasicModel, BasicModel_MultiLayer
  from torch import Tensor
label_desc: Use image node_id 5 for calling a global function with example usage: batch_text_preproc_fn(inp) and returns: torch