def handle_analysis_result(response):
    json_response = handle_response(response, ACCEPTABLE_HTTP_CODES)
    if (response.status_code != 200):
        result_url = json_response['result_url']
        analysis_id = result_url.rsplit('/', 1)[(- 1)]
        context_json = {'Intezer.Analysis(val.ID === obj.ID)': {'ID': analysis_id, 'Status': 'InProgress'}}
        return_outputs('Analysis is still in progress', context_json)
        return
    return json_response['result']
def handle_analysis_result(response):
    json_response = handle_response(response, ACCEPTABLE_HTTP_CODES)
    if (response.status_code != 200):
        result_url = json_response['result_url']
        analysis_id = result_url.rsplit('/', 1)[(- 1)]
        context_json = {'Intezer.Analysis(val.ID === obj.ID)': {'ID': analysis_id, 'Status': 'InProgress'}}
        return_outputs('Analysis is still in progress', context_json)
        return
    return json_response['result']