code: def normalize_sentence(sentence):
      """
      Normalize and correct a sentence of the turn.
  
      Arguments
      ---------
      sentence: str
          A sentence being extracted from the turn.
  
      Returns
      -------
      str
      """
  
      # Apostrophes
      sentence = sentence.replace(
          " '", "'"
      )  # Join apostrophe to previous word
      sentence = sentence.replace(
          "'", "' "
      )  # Detach apostrophe to next word
      # Specific errors
      sentence = sentence.replace("gc'est", "c'est")
      sentence = sentence.replace("a-t- il", "a-t-il")
      sentence = sentence.replace("' un parking", "un parking")
      sentence = sentence.replace("bleu marine", "bleu-marine")
      sentence = sentence.replace("Saint-jacques", "Saint-Jacques")
      sentence = sentence.replace("Mont-de-Marsan", "Mont-De-Marsan")
      sentence = sentence.replace("Mont de Marsan", "Mont-De-Marsan")
      # Particular characters
      sentence = re.sub(r"^'", "", sentence)
      sentence = re.sub(
          r"\(.*?\)", "*", sentence
      )  # Replace (...) with *
      sentence = re.sub(
          r"[^\w\s'-><_]", "", sentence
      )  # Punct. except '-><_
      # Numbers correction
      sentence = sentence.replace("dix-", "dix ")
      sentence = sentence.replace("vingt-", "vingt ")
      sentence = sentence.replace("trente-", "trente ")
      sentence = sentence.replace("quarante-", "quarante ")
      sentence = sentence.replace("cinquante-", "cinquante ")
      sentence = sentence.replace("soixante-", "soixante ")
      sentence = sentence.replace("quatre-", "quatre ")
      # Spaces
      sentence = re.sub(r"\s+", " ", sentence)
      sentence = re.sub(r"^\s+", "", sentence)
      sentence = re.sub(r"\s+$", "", sentence)
      # Specific
      sentence = sentence.replace(
          "c' est", "c'est"
      )  # Re-join this word
      return sentence
  
imports: import xml.dom.minidom
  from tqdm import tqdm
  import logging
  import subprocess
  import csv
  import os
  import glob
  import re
label_desc: Use image node_id 12 for calling a global function with example usage: normalize_sentence(sentence) and returns: sentence