class_docstr: Validator for enums.
class_docstr_tok: ["Validator","for","enums","."]
docstr: Init.
  
  :param [] choices: Valid choices for the field.
docstr_tok: ["Init",".",":","param","[","]","choices",":","Valid","choices","for","the","field","."]
code: def __init__(self, *choices):
      """Init.
  
      :param [] choices: Valid choices for the field.
      """
  
      self.choices = list(choices)
  
imports: import re
  from six.moves import reduce
  from .errors import ValidationError
  from .None import utilities
label_desc: Use image node_id 1 to create a new Enum object from inherited base classes: object with example: obj = Enum()