code: def remove_punctuations(
      text: str, punctuations: Optional[Union[list, str]] = None
  ) -> str:
      """
      Remove punctuations from a string
      """
      if not punctuations:
          punctuations = [
              char for char in '!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~'
          ]
  
      for punctuation in punctuations:
          text = text.replace(punctuation, "")
      return text
  
file_path: NeMo/nemo/collections/asr/parts/utils/eval_utils.py
imports: import json
  from typing import Optional, Tuple, Union
  from torchmetrics.text import SacreBLEUScore
  from torchmetrics.text.rouge import ROUGEScore
  from nemo.collections.asr.metrics.wer import word_error_rate_detail
  from nemo.utils import logging
  from nemo.utils.nemo_logging import LogMode
label_desc: Use image node_id 1 for calling a global function with example usage: remove_punctuations(text, punctuations) and returns: text