def _Enum(docstring, *names):
enums = dict(zip(names, range(len(names))))<EOL>reverse = dict((value, key) for key, value in enums.iteritems())<EOL>enums['<STR_LIT>'] = reverse<EOL>enums['<STR_LIT>'] = docstring<EOL>return type('<STR_LIT>', (object,), enums)<EOL>
Utility to generate enum classes used by annotations.

    Args:
      docstring: Docstring for the generated enum class.
      *names: Enum names.

    Returns:
      A class that contains enum names as attributes.