def is_pinyin(s):
re_pattern = ('<STR_LIT>' %<EOL>{'<STR_LIT>': zhon.pinyin.word,<EOL>'<STR_LIT>': zhon.pinyin.punctuation})<EOL>return _is_pattern_match(re_pattern, s)<EOL>
Check if *s* consists of valid Pinyin.