code: def test_assert_ea_index_equal_non_matching_na(
      check_names, check_categorical
  ):
      # GH#48608
      idx1 = Index([1, 2], dtype="Int64")
      idx2 = Index([1, NA], dtype="Int64")
      with pytest.raises(AssertionError, match="50.0 %"):
          tm.assert_index_equal(
              idx1,
              idx2,
              check_names=check_names,
              check_categorical=check_categorical,
          )
  
imports: import numpy
  import pytest
  from pandas import NA, Categorical, CategoricalIndex, Index, MultiIndex, NaT, RangeIndex
  import pandas._testing
label_desc: Use image node_id 20 for calling a global function with example usage: test_assert_ea_index_equal_non_matching_na(check_names, check_categorical) without return types