def METHOD_NAME():
    variant_1_id = graphene.Node.to_global_id("ProductVariant", 1)
    variant_2_id = graphene.Node.to_global_id("ProductVariant", 2)
    lines_data = [
        {"quantity": 6, "variant_id": variant_1_id, "price": 1.22},
        {"quantity": 6, "variant_id": variant_1_id},
        {"quantity": 1, "variant_id": variant_2_id, "price": 33.2},
        {"quantity": 1, "variant_id": variant_2_id, "price": 10},
    ]
    expected = [
        CheckoutLineData(
            variant_id="1",
            line_id=None,
            quantity=12,
            quantity_to_update=True,
            custom_price=1.22,
            custom_price_to_update=True,
        ),
        CheckoutLineData(
            variant_id="2",
            line_id=None,
            quantity=2,
            quantity_to_update=True,
            custom_price=10,
            custom_price_to_update=True,
        ),
    ]
    assert expected == group_lines_input_on_add(lines_data)