code: def pypinyin_g2p_phone(text) -> List[str]:
      from pypinyin import Style, pinyin
      from pypinyin.style._utils import get_finals, get_initials
  
      phones = [
          p
          for phone in pinyin(text, style=Style.TONE3)
          for p in [
              get_initials(phone[0], strict=True),
              get_finals(phone[0][:-1], strict=True) + phone[0][-1]
              if phone[0][-1].isdigit()
              else get_finals(phone[0], strict=True)
              if phone[0][-1].isalnum()
              else phone[0],
          ]
          # Remove the case of individual tones as a phoneme
          if len(p) != 0 and not p.isdigit()
      ]
      return phones
  
imports: import logging
  import re
  import warnings
  from pathlib import Path
  from typing import Iterable, List, Optional, Union
  import g2p_en
  import jamo
  from packaging.version import parse
  from typeguard import check_argument_types
  from espnet2.text.abs_tokenizer import AbsTokenizer
label_desc: Use image node_id 10 for calling a global function with example usage: pypinyin_g2p_phone(text) and returns: phones