code: def test_index_equal_values_less_close(check_exact, rtol):
      idx1 = Index([1, 2, 3.0])
      idx2 = Index([1, 2, 3.0001])
      kwargs = {"check_exact": check_exact, "rtol": rtol}
  
      if check_exact or rtol < 0.5e-3:
          msg = """Index are different
  
  Index values are different \\(33\\.33333 %\\)
  \\[left\\]:  Index\\(\\[1.0, 2.0, 3.0], dtype='float64'\\)
  \\[right\\]: Index\\(\\[1.0, 2.0, 3.0001\\], dtype='float64'\\)"""
  
          with pytest.raises(AssertionError, match=msg):
              tm.assert_index_equal(idx1, idx2, **kwargs)
      else:
          tm.assert_index_equal(idx1, idx2, **kwargs)
  
imports: import numpy
  import pytest
  from pandas import NA, Categorical, CategoricalIndex, Index, MultiIndex, NaT, RangeIndex
  import pandas._testing
label_desc: Use image node_id 8 for calling a global function with example usage: test_index_equal_values_less_close(check_exact, rtol) without return types