def METHOD_NAME(
    user_api_client, checkout_with_items
):
    checkout = checkout_with_items
    line = checkout.lines.first()
    second_line = checkout.lines.last()
    first_line_id = graphene.Node.to_global_id("CheckoutLine", line.pk)
    second_line_id = graphene.Node.to_global_id("CheckoutLine", second_line.pk)
    lines_list = [first_line_id, second_line_id]
    variables = {
        "id": graphene.Node.to_global_id("Checkout", checkout.pk),
        "linesIds": lines_list,
    }
    checkout.delete()
    response = user_api_client.post_graphql(MUTATION_CHECKOUT_LINES_DELETE, variables)
    content = get_graphql_content(response)
    errors = content["data"]["checkoutLinesDelete"]["errors"][0]
    assert errors["code"] == CheckoutErrorCode.NOT_FOUND.name