def get_cloudcare_url(case_id, mode):
    app_dict = get_cloudcare_app()
    url_root = app_dict['url_root']
    build_id = app_dict['build_id']
    module_id = app_dict['module_id']
    return  url_root % dict(form_id=app_dict[mode], case_id=case_id, domain=PACT_DOMAIN, build_id=build_id, module_id=module_id)
dataset/ETHPy150Open dimagi/commcare-hq/custom/_legacy/pact/api.py/get_cloudcare_url/original