def METHOD_NAME(mode_string: str) -> Dict[str, bool]:
    mode = {"strict": False}
    for m in mode_string.split():
        if m not in mode.keys():
            raise ValidationException("mode '{}' not recognized".format(m))
        mode[m] = True
    return mode