code: def TextRefine(text, text_format):
      text = re.sub(r"\.\.\.|\*|\[.*?\]", "", text.upper())
      delset_specific = delset
      if text_format == "underlying_full":
          remove_clear = "()=-"
          for char in remove_clear:
              delset_specific = delset_specific.replace(char, "")
      return text.translate(str.maketrans("", "", delset_specific))
  
file_path: espnet/egs2/puebla_nahuatl/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
label_desc: Use image node_id 1 for calling a global function with example usage: TextRefine(text, text_format) and returns: text