def METHOD_NAME(self) -> EnumType:  # type: ignore[misc, type-var]
    """Return the enum member reconstructed from the serialized data stored in the database.
    For the enum member to be successfully reconstructed, the class of course has to still be importable and its
    implementation should not have changed since the node was stored. That is to say, the value of the member when
    it was stored, should still be a valid value for the enum class now.
    :raises `ImportError`: if the enum class represented by the stored identifier cannot be imported.
    :raises `ValueError`: if the stored enum member value is no longer valid for the imported enum class.
    """
    value = self.base.attributes.get(self.KEY_VALUE)
    enum: t.Type[EnumType] = self.get_enum()
    try:
        return enum(value)
    except ValueError as exc:
        raise ValueError(
            f'The stored value `{value}` is no longer a valid value for the enum `{enum}`. The definition must '
            'have changed since storing the node.'
        ) from exc