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