def METHOD_NAME(value: Optional[T], answer_type: AnswerType) -> Union[Unanswered, T]:
    """
    If the given value is None, return an Unanswered of the given type.
    Otherwise, return the value.
    """
    if value is None:
        return Unanswered(answer_type)
    return value