<s> import re <EOL> def encode_unicode_codepoints ( str ) : <EOL> r"""<STR_LIT>""" <EOL> codepoint_format = '<STR_LIT>' . format <EOL> def codepoint ( m ) : <EOL> return codepoint_format ( ord ( m . group ( <NUM_LIT:0> ) ) ) <EOL> return re . sub ( '<STR_LIT>' , codepoint , str ) </s>
