code: def test_index_equal_length_mismatch(check_exact):
      msg = """Index are different
  
  Index length are different
  \\[left\\]:  3, Index\\(\\[1, 2, 3\\], dtype='int64'\\)
  \\[right\\]: 4, Index\\(\\[1, 2, 3, 4\\], dtype='int64'\\)"""
  
      idx1 = Index([1, 2, 3])
      idx2 = Index([1, 2, 3, 4])
  
      with pytest.raises(AssertionError, match=msg):
          tm.assert_index_equal(idx1, idx2, 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 3 for calling a global function with example usage: test_index_equal_length_mismatch(check_exact) without return types