code: def remove_accents(
      text: str,
  ) -> str:  # pylint: disable=too-many-statements
      """
      Remove accents; note: AE replacement and macron replacement should happen elsewhere, if desired.
      :param text: text with undesired accents
      :return: clean text
  
      >>> remove_accents('suspensám')
      'suspensam'
  
      >>> remove_accents('quăm')
      'quam'
  
      >>> remove_accents('aegérrume')
      'aegerrume'
  
      >>> remove_accents('ĭndignu')
      'indignu'
  
      >>> remove_accents('îs')
      'is'
  
      >>> remove_accents('óccidentem')
      'occidentem'
  
      >>> remove_accents('frúges')
      'fruges'
  
      """
      replacements = (
          (r"á", "a"),
          (r"Á", "A"),
          (r"á", "a"),
          (r"Á", "A"),
          (r"ă", "a"),
          (r"Ă", "A"),
          (r"à", "a"),
          (r"À", "A"),
          (r"â", "a"),
          (r"Â", "A"),
          (r"ä", "a"),
          (r"Ä", "A"),
          (r"é", "e"),
          (r"è", "e"),
          (r"È", "E"),
          (r"é", "e"),
          (r"É", "E"),
          (r"ê", "e"),
          (r"Ê", "E"),
          (r"ë", "e"),
          (r"Ë", "E"),
          (r"ĭ", "i"),
          (r"î", "i"),
          (r"í", "i"),
          (r"í", "i"),
          (r"î", "i"),
          (r"Î", "I"),
          (r"ï", "i"),
          (r"Ï", "I"),
          (r"ó", "o"),
          (r"ô", "o"),
          (r"Ô", "O"),
          (r"ö", "o"),
          (r"Ö", "O"),
          (r"û", "u"),
          (r"Û", "U"),
          (r"ù", "u"),
          (r"Ù", "U"),
          (r"ü", "u"),
          (r"Ü", "U"),
          (r"ú", "u"),
          (r"ÿ", "y"),
          (r"Ÿ", "Y"),
          (r"ç", "c"),
          (r"Ç", "C"),
          (r"ë", "e"),
          (r"Ë", "E"),
          (r"Ȳ", "Y"),
          (r"ȳ", "y"),
      )
      for target, tranformation in replacements:
          text = text.replace(target, tranformation)
      return text
  
imports: import re
  from typing import Dict
  from cltk.alphabet.text_normalization import cltk_normalize, remove_odd_punct, split_leading_punct, split_trailing_punct
label_desc: Use image node_id 5 for calling a global function with example usage: remove_accents(text) and returns: text