code: def test_index_equal_class(exact):
      idx1 = Index([0, 1, 2])
      idx2 = RangeIndex(3)
  
      tm.assert_index_equal(idx1, idx2, exact=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 4 for calling a global function with example usage: test_index_equal_class(exact) without return types