def request(query, params):
    if ('is_test' not in params):
        vqd = get_vqd(query)
    else:
        vqd = '12345'
    offset = ((params['pageno'] - 1) * 50)
    safesearch = (params['safesearch'] - 1)
    region_code = get_region_code(params['language'], lang_list=supported_languages)
    params['url'] = images_url.format(query=urlencode({'q': query, 'l': region_code}), offset=offset, safesearch=safesearch, vqd=vqd)
    return params
def request(query, params):
    if ('is_test' not in params):
        vqd = get_vqd(query)
    else:
        vqd = '12345'
    offset = ((params['pageno'] - 1) * 50)
    safesearch = (params['safesearch'] - 1)
    region_code = get_region_code(params['language'], lang_list=supported_languages)
    params['url'] = images_url.format(query=urlencode({'q': query, 'l': region_code}), offset=offset, safesearch=safesearch, vqd=vqd)
    return params