def METHOD_NAME():
    # link_and_dedupe - much like dedupe,
    # N(N - 1)/2 comparisons with N = sum of rows of all frames
    # alternatively can think of this as
    # 'link only' links + dedupe links for each frame in list
    assert calculate_cartesian(list_to_row_count([8]), "link_and_dedupe") == 28
    assert calculate_cartesian(list_to_row_count([2, 3]), "link_and_dedupe") == 10
    assert (
        calculate_cartesian(list_to_row_count([7, 11]), "link_and_dedupe")
        == 77 + 21 + 55
    )
    assert calculate_cartesian(list_to_row_count([2, 2, 2]), "link_and_dedupe") == 15
    assert calculate_cartesian(list_to_row_count([1, 1, 1]), "link_and_dedupe") == 3
    assert (
        calculate_cartesian(list_to_row_count([2, 2, 2, 2, 2]), "link_and_dedupe") == 45
    )
    assert (
        calculate_cartesian(list_to_row_count([5, 5, 5, 5]), "link_and_dedupe") == 190
    )