code: def is_ipa(s):
      
      re_pattern = ('(?:%(syllable)s|[ \t%(punctuation)s])+' %
                    {'syllable': _IPA_SYLLABLE,
                     'punctuation': zhon.pinyin.punctuation})
      return _is_pattern_match(re_pattern, s)
docs: Check if *s* consists of valid Chinese IPA.