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