def METHOD_NAME(response):
    url = config.get('hdx.captcha.url')
    secret = config.get('ckan.recaptcha.privatekey')
    params = {'secret': secret, "response": response}
    r = requests.get(url, params=params, verify=True)
    res = json.loads(r.content)
    return 'success' in res and res['success'] == True