code: def data_cleaning(words):
      """
      Perform data cleaning
  
      Arguments
      ---------
          word : str
              Text that needs to be cleaned
  
      Returns
      -------
      str
          Cleaned data
  
      """
  
      # this replacement helps preserve the case of ß
      # (and helps retain solitary occurrences of SS)
      # since python's upper() converts ß to SS.
      words = words.replace("ß", "0000ß0000")
      words = re.sub("[^’'A-Za-z0-9öÖäÄüÜß]+", " ", words).upper()
      words = words.replace("'", " ")
      words = words.replace("’", " ")
      words = words.replace(
          "0000SS0000", "ß"
      )  # replace 0000SS0000 back to ß as its initial presence in the corpus
      return words
  
file_path: speechbrain/recipes/RescueSpeech/rescuespeech_prepare.py
imports: import os
  import re
  import csv
  import glob
  import logging
  import torchaudio
  import unicodedata
  from tqdm import tqdm
  from tqdm.contrib import tzip
  from speechbrain.dataio.dataio import read_audio
label_desc: Use image node_id 8 for calling a global function with example usage: data_cleaning(words) and returns: words