class_docstr: Represents an attribute whose value can be one of several predefined values.
class_docstr_tok: ["Represents","an","attribute","whose","value","can","be","one","of","several","predefined","values","."]
code: def __init__(self, name, choices, default=None, configurable=True):
      super().__init__(
          name,
          value_type=list,
          default=default,
          configurable=configurable,
      )
      assert len(choices) > 0
      if default is not None:
          assert default in choices
      self.choices = choices
      self.value_type = str(self.choices)
  
imports: from collections.abc import MutableMapping
  from numbers import Integral
  from hls4ml.model.types import NamedType, Source, TensorVariable, WeightVariable
  from hls4ml.utils.string_utils import convert_to_pascal_case
label_desc: Use image node_id 1 to create a new ChoiceAttribute object from inherited base classes: Attribute with example: obj = ChoiceAttribute(name, choices, default, configurable)