code: def remove_spaces_from_sentences(sents):
      """
      Makes sure every word in the list of sentences has SpaceAfter=No.
  
      Returns a new list of sentences
      """
      new_sents = []
      for sentence in sents:
          new_sentence = []
          for word in sentence:
              if word.startswith("#"):
                  new_sentence.append(word)
                  continue
              pieces = word.split("\t")
              if pieces[-1] == "_":
                  pieces[-1] = "SpaceAfter=No"
              elif pieces[-1].find("SpaceAfter=No") >= 0:
                  pass
              else:
                  raise ValueError("oops")
              word = "\t".join(pieces)
              new_sentence.append(word)
          new_sents.append(new_sentence)
      return new_sents
  
imports: import argparse
  import glob
  import os
  import random
  import re
  import tempfile
  from collections import Counter
  from stanza.models.common.constant import treebank_to_short_name
  import stanza.utils.datasets.common
  from stanza.utils.datasets.common import read_sentences_from_conllu, write_sentences_to_conllu, INT_RE, MWT_RE, MWT_OR_COPY_RE
  import stanza.utils.datasets.tokenization.convert_ml_cochin
  import stanza.utils.datasets.tokenization.convert_my_alt
  import stanza.utils.datasets.tokenization.convert_vi_vlsp
  import stanza.utils.datasets.tokenization.convert_th_best
  import stanza.utils.datasets.tokenization.convert_th_lst20
  import stanza.utils.datasets.tokenization.convert_th_orchid
label_desc: Use image node_id 20 for calling a global function with example usage: remove_spaces_from_sentences(sents) and returns: new_sents