def func(CP: car.CarParams, sm: messaging.SubMaster, metric: bool, soft_disable_time: int) -> Alert:
    if (soft_disable_time < int((0.5 / DT_CTRL))):
        return ImmediateDisableAlert(alert_text_2)
    return UserSoftDisableAlert(alert_text_2)
def func(CP: car.CarParams, sm: messaging.SubMaster, metric: bool, soft_disable_time: int) -> Alert:
    if (soft_disable_time < int((0.5 / DT_CTRL))):
        return ImmediateDisableAlert(alert_text_2)
    return UserSoftDisableAlert(alert_text_2)