def verify_description_mode(mode: str) -> None:
    if (mode not in ('lastIsName', 'noneIsName', 'markType', 'markName', 'param')):
        raise Exception(("Description mode '%s' is invalid." % mode))
def verify_description_mode(mode: str) -> None:
    if (mode not in ('lastIsName', 'noneIsName', 'markType', 'markName', 'param')):
        raise Exception(("Description mode '%s' is invalid." % mode))