<s> def encode_if_unicode ( arg ) : <EOL> if isinstance ( arg , list ) : <EOL> return [ encode_if_unicode ( elem ) for elem in arg ] <EOL> else : <EOL> return arg . encode ( "<STR_LIT:utf-8>" ) <EOL> def decode_if_str ( arg ) : <EOL> if isinstance ( arg , list ) : <EOL> return [ decode_if_str ( elem ) for elem in arg ] <EOL> else : <EOL> return arg . decode ( "<STR_LIT:utf-8>" ) if isinstance ( arg , str ) else arg </s>
