code: def normalize_text(text):
      """normalize a text sequence"""
  
      rmtext = re.sub(
          r"\(((pp)(\w)+)\)",
          "<noise>",
          text.lower(),
      )
      rmtext = re.sub(
          r"\<((pp)(\w)+)\>",
          "<noise>",
          rmtext,
      )
      rmtext = rmtext.translate(pattern)
      rmtext = remove_control_chars(rmtext)
      output_text = ""
      for wrd in rmtext.split():
          if wrd in {
              "ppl",
              "ppc",
              "ppb",
              "ppo",
              "<v-noise>",
          }:
              wrd = "<noise>"
          output_text += f"{wrd} "
  
      output_text = output_text.strip()
      output_text = output_text.translate(pattern2)
      output_text = output_text.replace("<unl>", "<unk>")
      output_text = output_text.replace("< unk >", "<unk>")
      output_text = re.sub(r"\<((unk)[a-z ]+)\>", "<unk>", output_text)
      output_text = insert_space_between_mandarin(output_text)
      output_text = remove_redundant_whitespaces(output_text)
      output_text = remove_repeated_noise(output_text, "<noise>")
  
      return output_text
  
imports: import argparse
  import collections
  import itertools
  import os
  import random
  import re
  import sys
label_desc: Use image node_id 9 for calling a global function with example usage: normalize_text(text) and returns: output_text