def METHOD_NAME(client):
    user = UserFactory()
    ci = ComponentInterfaceFactory(kind=ComponentInterface.Kind.IMAGE)
    response = get_view_for_user(
        viewname="cases:select-image-widget",
        client=client,
        user=user,
        data={
            f"WidgetChoice-{ci.slug}": WidgetChoices.IMAGE_SEARCH.name,
            "interface_slug": ci.slug,
        },
    )
    assert '<input class="form-control" type="search"' in str(response.content)
    response2 = get_view_for_user(
        viewname="cases:select-image-widget",
        client=client,
        user=user,
        data={
            f"WidgetChoice-{ci.slug}": WidgetChoices.IMAGE_UPLOAD.name,
            "interface_slug": ci.slug,
        },
    )
    assert 'class="user-upload"' in str(response2.content)
    response3 = get_view_for_user(
        viewname="cases:select-image-widget",
        client=client,
        user=user,
        data={
            f"WidgetChoice-{ci.slug}": WidgetChoices.UNDEFINED.name,
            "interface_slug": ci.slug,
        },
    )
    assert response3.content == b""