code: def test_index_equal_levels_mismatch():
      msg = """Index are different
  
  Index levels are different
  \\[left\\]:  1, Index\\(\\[1, 2, 3\\], dtype='int64'\\)
  \\[right\\]: 2, MultiIndex\\(\\[\\('A', 1\\),
              \\('A', 2\\),
              \\('B', 3\\),
              \\('B', 4\\)\\],
             \\)"""
  
      idx1 = Index([1, 2, 3])
      idx2 = MultiIndex.from_tuples(
          [("A", 1), ("A", 2), ("B", 3), ("B", 4)]
      )
  
      with pytest.raises(AssertionError, match=msg):
          tm.assert_index_equal(idx1, idx2, exact=False)
  
imports: import numpy
  import pytest
  from pandas import NA, Categorical, CategoricalIndex, Index, MultiIndex, NaT, RangeIndex
  import pandas._testing
label_desc: Use image node_id 1 for calling a global function with example usage: test_index_equal_levels_mismatch() without return types