def discrete(cats, name='<STR_LIT>'):
import json<EOL>ks = list(cats)<EOL>for key in ks:<EOL><INDENT>if isinstance(key, bytes):<EOL><INDENT>cats[key.decode('<STR_LIT:utf-8>')] = cats.pop(key)<EOL><DEDENT><DEDENT>return '<STR_LIT>' + json.dumps([cats, name]) + '<STR_LIT:)>'<EOL>
Return a class category that shows the encoding