code: def TextRefine(text):
      text = re.sub(r"\.\.\.|\*|\[.*?\]", "", text.upper())
      delset_specific = delset
      return text.translate(str.maketrans("", "", delset_specific))
  
file_path: espnet/egs2/totonac/asr1/local/data_prep.py
imports: import os
  import re
  import shutil
  import string
  import sys
  from argparse import ArgumentParser
  from xml.dom.minidom import parse
  import soundfile
label_desc: Use image node_id 1 for calling a global function with example usage: TextRefine(text) and returns: text