def METHOD_NAME(*args, **kwargs):
    """
    Returns a named enumerator based on simple list of integers.
    @param *args: list of names of constants to create
    @type *args: list
    """
    return type('Enum',
                (),
                dict((y, x) for x, y in enumerate(args), **kwargs)
                )