def METHOD_NAME():
    # link_only - sum of all pairwise comparisons - i.e. sum of all pairwise products
    assert calculate_cartesian(list_to_row_count([2, 3]), "link_only") == 6
    assert calculate_cartesian(list_to_row_count([7, 11]), "link_only") == 77
    assert calculate_cartesian(list_to_row_count([2, 2, 2]), "link_only") == 12
    assert calculate_cartesian(list_to_row_count([2, 3, 5]), "link_only") == 31
    assert calculate_cartesian(list_to_row_count([1, 1, 1]), "link_only") == 3
    assert calculate_cartesian(list_to_row_count([2, 2, 2, 2, 2]), "link_only") == 40
    assert calculate_cartesian(list_to_row_count([5, 5, 5, 5]), "link_only") == 150
    with pytest.raises(ValueError):
        calculate_cartesian(list_to_row_count([12]), "link_only")