code: def normalize_punctuation(text: str) -> str:
      """remove punctuation from given string"""
  
      # remove brachets and inside
      text = re.sub(r"\([^)]*\)", " ", text)
      text = re.sub(r"\[[^]]+\]", " ", text)
  
      # normalize punctuation
      text = re.sub(r"_", "", text)
      text = re.sub(r"`", "'", text)  # for En
      text = re.sub(r"´", "'", text)  # for En
      text = re.sub(r"\¨", "'", text)  # I¨m -> I'm etc.
  
      # remove noisy parts
      text = re.sub(r"noise", "", text)
      text = re.sub(r"laughter", "", text)
      text = re.sub(r"background noise", "", text)
      text = re.sub(r"background speech", "", text)
  
      # fisher_train
      text = re.sub(r"i\/he", "i", text)
      text = re.sub(r"i\/she", "i", text)
      text = re.sub(r" \/\?", "\\?", text)
      text = re.sub(r" \/ ", " ", text)
      text = re.sub(r"a\/c", "", text)
      text = re.sub(r"stay\/", "stay", text)
      text = re.sub(r"boys\/", "boys", text)
      text = re.sub(r"right\/", "right", text)
      text = re.sub(r"follow\/", "follow", text)
      text = re.sub(r"Jose\/Josefina", "Jose", text)
      text = re.sub(r"welfare\/foreign", "welfare", text)
      text = re.sub(r"\<foreign lang=\"English\"", "", text)
      text = re.sub(r"\/foreign/", "", text)
      text = re.sub(r"\<plural\>", "", text)
      text = re.sub(r"\<barely makes any sense\>", "", text)
      text = re.sub(r"\<kind of a weird phrase\>", "", text)
      text = re.sub(r"\<last word does not fit there\>", "", text)
      text = re.sub(
          r"\<players with the meaning of singers\>", "", text
      )
      text = re.sub(
          r"\<this phrase barely made any sense whatsoever\>", "", text
      )
      text = re.sub(
          r"\<colorcito does not exist as a word so I have no ideea what he means about that\>",
          "",
          text,
      )
      text = re.sub(r"\<foreign", "", text)
      text = re.sub(r"foreign\>", "", text)
  
      # fisher_dev
      text = re.sub(r"her\/his", "her", text)
      text = re.sub(r"o\/", "o", text)
      text = re.sub(r"co\/", "co", text)
      text = re.sub(r"L \/ ", "", text)
      text = re.sub(r"\<\?\?\?\>", "", text)
      text = re.sub(r"\<from Texas\>", "", text)
      text = re.sub(r"\<weird phrase\>", "", text)
      text = re.sub(r"\<weird phrase\>", "", text)
      text = re.sub(r"\<this makes no sense\>", "", text)
      text = re.sub(r"Salvador\>", "Salvador", text)
  
      # fisher_dev 2
      text = re.sub(r"A\/C", "", text)
      text = re.sub(r"She\/he", "She", text)
      text = re.sub(r"you\/he", "you", text)
      text = re.sub(r"you\/she", "you", text)
      text = re.sub(r"Um\/", "Um", text)
      text = re.sub(r"name\/", "name", text)
      text = re.sub(r"American\/", "American", text)
      text = re.sub(r"\<\?\>", "", text)
      text = re.sub(r"\<metaphoric meaning\>", "", text)
      text = re.sub(r"\<missing text \? \>", "", text)
      text = re.sub(
          r"\<broken phrase but I tried to guess what would it mean if it was complete\>",
          "",
          text,
      )
  
      # fisher_test
      text = re.sub(r"she\/he", "she", text)
      text = re.sub(r"her\/him", "her", text)
      text = re.sub(r"is\/", "is", text)
      text = re.sub(r"and\/or", "and", text)
      text = re.sub(r"Then\/Well", "Then", text)
      text = re.sub(r"fine\/well", "fine", text)
      text = re.sub(r"Likewise\/Equally", "Likewise", text)
      text = re.sub(r"boyfriend\/girlfriend", "boyfriend", text)
      text = re.sub(r"living room \/ dining room", "living room", text)
      text = re.sub(r"\<very bad phrase\>", "", text)
      text = re.sub(r"\<poorly written phrase\>", "", text)
      text = re.sub(r"\<this phrase barely even made sense\>", "", text)
      text = re.sub(
          r"\<very poorly written phrase but I think this is what was supposed to mean\>",
          "",
          text,
      )
      text = re.sub(r"what\)\)", "what", text)
  
      # remove noisy punctuation
      text = re.sub(r"\(", " ", text)
      text = re.sub(r"\)", " ", text)
      text = re.sub(r"\<", " ", text)
      text = re.sub(r"\>", " ", text)
      text = re.sub(r"\[", " ", text)
      text = re.sub(r"\]", " ", text)
      text = re.sub(r"\{", " ", text)
      text = re.sub(r"\}", " ", text)
      text = re.sub(r"\\", " ", text)
      text = re.sub(r"\/", " ", text)
      text = re.sub(r"\;", " ", text)
      text = re.sub(r"~", " ", text)
      text = re.sub(r"=", " ", text)
      text = re.sub(r"\·", " ", text)
  
      text = re.sub(r"^\.\s*$", "", text)  # only period sentence
      text = re.sub(r"^\?\s*$", "", text)  # only question mark sentence
      text = re.sub(r"\s+", " ", text)  # remove consecutive whitespaces
  
      # remove the first and last whitespaces
      text = re.sub(r"^\s+", "", text)
      text = re.sub(r"\s+$", "", text)
  
      text = text.lstrip()
  
      return text
  
imports: import os
  import re
  import json
  import string
  import logging
  import subprocess
  from typing import List
  from dataclasses import dataclass, field
  import torch
  import torchaudio
  from tqdm import tqdm
  from speechbrain.utils.data_utils import get_all_files
  from speechbrain.utils.torch_audio_backend import check_torchaudio_backend
  from speechbrain.augment.time_domain import Resample
label_desc: Use image node_id 14 for calling a global function with example usage: normalize_punctuation(text) and returns: text