<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def log_user_in(app_id, token, ticket, response, cookie_name='user',
                url_detail='https://pswdless.appspot.com/rest/detail'):
    '''
    Log the user in setting the user data dictionary in cookie
    Returns a command that execute the logic
    '''
    return LogUserIn(app_id, token, ticket, response, cookie_name, url_detail)