code: def make_sequence_lengths(batch: List[List[str]]) -> List[int]:
      seq_lens = torch.jit.annotate(List[int], [])
      for sentence in batch:
          seq_lens.append(len(sentence))
      return seq_lens
  
imports: from typing import List, NamedTuple, Optional, Tuple
  import torch
  from torch import Tensor
label_desc: Use image node_id 10 for calling a global function with example usage: make_sequence_lengths(batch) and returns: seq_lens