code: def test_get_loc_masked_na(self, any_numeric_ea_and_arrow_dtype):
      # GH#39133
      idx = Index([1, 2, NA], dtype=any_numeric_ea_and_arrow_dtype)
      result = idx.get_loc(NA)
      assert result == 2
  
      idx = Index([1, 2, NA, NA], dtype=any_numeric_ea_and_arrow_dtype)
      result = idx.get_loc(NA)
      tm.assert_numpy_array_equal(
          result, np.array([False, False, True, True])
      )
  
      idx = Index([1, 2, 3], dtype=any_numeric_ea_and_arrow_dtype)
      with pytest.raises(KeyError, match="NA"):
          idx.get_loc(NA)
  
imports: import numpy
  import pytest
  from pandas.errors import InvalidIndexError
  from pandas import NA, Index, RangeIndex, Series, Timestamp
  import pandas._testing
  from pandas.core.arrays import ArrowExtensionArray, FloatingArray
label_desc: Use image node_id 16 for calling the TestGetIndexer obj's underlying member method code with example usage: obj.test_get_loc_masked_na(any_numeric_ea_and_arrow_dtype) without return types