code: def utf8_to_ascii(text: str) -> str:
      """Holidays often have utf-8 characters. These are not allowed in R package data (they generate a NOTE).
      TODO: revisit whether we want to do this lossy conversion.
      """
      ascii_text = (
          unicodedata.normalize("NFD", text)
          .encode("ascii", "ignore")
          .decode("ascii")
      )
      # Remove trailing empty brackets and spaces.
      ascii_text = re.sub(r"\(\)$", "", ascii_text).strip()
  
      # Check if anything converted
      if (
          sum(1 for x in ascii_text if x not in [" ", "(", ")", ","])
          == 0
      ):
          return "FAILED_TO_PARSE"
      else:
          return ascii_text
  
file_path: prophet/python/scripts/generate_holidays_file.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import re
  import unicodedata
  import pandas
  import numpy
  from holidays import list_supported_countries
  from prophet.make_holidays import make_holidays_df
label_desc: Use image node_id 1 for calling a global function with example usage: utf8_to_ascii(text) and returns: str, ascii_text