code: def make_prediction_texts(
      batch: List[Tuple[List[str],]],  # texts
  ) -> List[str]:
      batchsize = len(batch)
  
      if batchsize == 0:
          raise RuntimeError(
              "Input batch must have at least 1 batch element"
          )
  
      flat_texts: List[str] = []
  
      for i in range(batchsize):
          batch_element = batch[i][0]
          flat_texts.extend(batch_element)
  
      if len(flat_texts) == 0:
          raise RuntimeError("This is not good. Empty request batch.")
  
      return flat_texts
  
imports: from typing import Any, Dict, List, Optional, Tuple
  import torch
  from pytext.torchscript.tensorizer.tensorizer import ScriptTensorizer
label_desc: Use image node_id 20 for calling a global function with example usage: make_prediction_texts(batch) and returns: flat_texts