<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def arg_int(name, default=None):
 """ Fetch a query argument, as an integer. """

    try:
        v = request.args.get(name)
        return int(v)
    except (ValueError, TypeError):
        return default