def METHOD_NAME(self, Lx, Ly, order):
    ham = qtn.ham_2d_j1j2(Lx, Ly)
    assert (
        len(ham.terms) ==
        2 * Lx * Ly - Lx - Ly + 2 * (Lx - 1) * (Ly - 1)
    )
    ordering = ham.get_auto_ordering(order)
    assert len(ordering) == len(ham.terms)
    assert set(ordering) == set(ham.terms)
    assert tuple(ordering) != tuple(ham.terms)
    # make sure first four pairs are in same commuting group at least
    first_four_pairs = tuple(itertools.chain(*ordering[:4]))
    assert len(first_four_pairs) == len(set(first_four_pairs))