code: def strip_lastharaka(text):
      """Strip the last Haraka from arabic word except Shadda.
      The striped marks are:
  
      - FATHA, DAMMA, KASRA
      - SUKUN
      - FATHATAN, DAMMATAN, KASRATAN
  
      @param text: arabic text.
      @type text: unicode.
      @return: return a striped text.
      @rtype: unicode.
      """
      if text:
          if is_vocalized(text):
              return re.sub(LASTHARAKA_PATTERN, "", text)
      return text
  
imports: import re
  from cltk.phonology.arb.utils.pyarabic import stack
label_desc: Use image node_id 32 for calling a global function with example usage: strip_lastharaka(text) and returns: text, re