def to_ipa(s):
identity = identify(s)<EOL>if identity == IPA:<EOL><INDENT>return s<EOL><DEDENT>elif identity == PINYIN:<EOL><INDENT>return pinyin_to_ipa(s)<EOL><DEDENT>elif identity == ZHUYIN:<EOL><INDENT>return zhuyin_to_ipa(s)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>
Convert *s* to IPA.