def assert_index_equal(left, right):
    """
    Similar to pdt.assert_index_equal but is not sensitive to key ordering.

    Parameters
    ----------
    left: pandas.Index
    right: pandas.Index
    """
    assert isinstance(left, pd.Index)
    assert isinstance(right, pd.Index)
    left_diff = left.diff(right)
    right_diff = right.diff(left)
    if len(left_diff) > 0 or 0 > len(right_diff):
        raise AssertionError("keys not in left [{0}], keys not in right [{1}]".format(
            left_diff, right_diff))
dataset/ETHPy150Open UDST/urbansim/urbansim/utils/testing.py/assert_index_equal/swapped operands of `>`