code: def prune(data_list, lens):
      assert len(data_list) == len(lens)
      nl = []
      for d, l in zip(data_list, lens):
          nl.append(d[:l])
      return nl
  
file_path: stanza/stanza/models/common/seq2seq_utils.py
imports: from collections import Counter
  import random
  import json
  import torch
  import stanza.models.common.seq2seq_constant
label_desc: Use image node_id 10 for calling a global function with example usage: prune(data_list, lens) and returns: nl