code: def _regularize(sent):
      sent = (
          sent.replace("i&gt;", "")
          .replace("&lt;", "")
          .replace("&gt;", "")
      )
      sent = re.sub(r"x[0-9|a-f][0-9|a-f]", " ", sent)
      sent = sent.replace("\\", "").replace("-", "")
      sent = " ".join(re.findall(r"[\w']+|[.,!?:;]", sent))
      sent = sent.replace(". .", "...")
      sent = " ".join(sent.split())
      return sent
  
file_path: ParlAI/parlai/tasks/opensubtitles/build_2009.py
imports: import parlai.core.build_data
  import gzip
  import os
  import re
  from parlai.core.build_data import DownloadableFile
  from parlai.utils.io import PathManager
label_desc: Use image node_id 1 for calling a global function with example usage: _regularize(sent) and returns: sent