code: def kata2phoneme(text: str) -> str:
      """Convert katakana text to phonemes."""
      text = text.strip()
      res = ""
      while text:
          if len(text) >= 2:
              x = _RULEMAP2.get(text[:2])
              if x is not None:
                  text = text[2:]
                  res += x
                  continue
          x = _RULEMAP1.get(text[0])
          if x is not None:
              text = text[1:]
              res += x
              continue
          res += " " + text[0]
          text = text[1:]
      res = _COLON_RX.sub(":", res)
      return res[1:]
  
file_path: TTS/TTS/tts/utils/text/japanese/phonemizer.py
imports: import re
  import unicodedata
  from num2words import num2words
label_desc: Use image node_id 2 for calling a global function with example usage: kata2phoneme(text) and returns: res