code: def transliterate(text: str, engine: str = "ipa") -> str:
      
  
      if not text or not isinstance(text, str):
          return ""
  
      if engine == "icu" or engine == "pyicu":
          from .pyicu import transliterate
      else:
          from .ipa import transliterate
  
      return transliterate(text)
docs: Transliteration of Thai text
      :param str text: Thai text to be transliterated
      :param str engine: 'ipa' (International Phonetic Alphabet; default) or 'icu'.
      :return: A string of Internaitonal Phonetic Alphabets indicating how the text should be pronounced.