def METHOD_NAME(form, case_id):
    updates = get_case_updates(form)
    for update in updates:
        if update.creates_case() and update.id == case_id:
            return update.get_create_action().type