<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def submit(**kwargs):
 """Shortcut that takes an alert to evaluate and makes the appropriate API call based on the results. :param kwargs: A list of keyword arguments :type kwargs: dict """

    if 'alert' not in kwargs:
        raise ValueError('Alert required')

    if 'value' not in kwargs:
        raise ValueError('Value required')

    alert = kwargs.pop('alert')
    value = kwargs['value']

    if alert(value):
        fail(kwargs)
    else:
        ok(kwargs)