def enum(**enums):
enums['<STR_LIT>'] = dict((value, key) for key, value in six.iteritems(enums))<EOL>return type('<STR_LIT>', (), enums)<EOL>
Utility method for defining enums.
:param enums: Parameters of enumeration.
:return: (Enum), the created enumerations.