docs: def get_choice(cls, value):
          """
          Return the underlying :class:`ChoiceItem` for a given value.
          """
          attribute_for_value = cls.attributes[value]
          return cls._fields[attribute_for_value]