code: def test_assert_index_equal_different_inferred_types():
      # GH#31884
      msg = """\
  Index are different
  
  Attribute "inferred_type" are different
  \\[left\\]:  mixed
  \\[right\\]: datetime"""
  
      idx1 = Index([NA, np.datetime64("nat")])
      idx2 = Index([NA, NaT])
      with pytest.raises(AssertionError, match=msg):
          tm.assert_index_equal(idx1, idx2)
  
imports: import numpy
  import pytest
  from pandas import NA, Categorical, CategoricalIndex, Index, MultiIndex, NaT, RangeIndex
  import pandas._testing
label_desc: Use image node_id 15 for calling a global function with example usage: test_assert_index_equal_different_inferred_types() without return types