code: def remove_space_after_no(piece, fail_if_missing=True):
      """
      Removes a SpaceAfter=No annotation from a single piece of a single word.
      In other words, given a list of conll lines, first call split("\t"), then call this on the -1 column
      """
      # |SpaceAfter is in UD_Romanian-Nonstandard... seems fitting
      if piece == "SpaceAfter=No" or piece == "|SpaceAfter=No":
          piece = "_"
      elif piece.startswith("SpaceAfter=No|"):
          piece = piece.replace("SpaceAfter=No|", "")
      elif piece.find("|SpaceAfter=No") > 0:
          piece = piece.replace("|SpaceAfter=No", "")
      elif fail_if_missing:
          raise ValueError(
              "Could not find SpaceAfter=No in the given notes field"
          )
      return piece
  
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 5 for calling a global function with example usage: remove_space_after_no(piece, fail_if_missing) and returns: piece