code: def test_get_loc_overflows(self):
      # unique but non-monotonic goes through IndexEngine.mapping.get_item
      idx = Index([0, 2, 1])
  
      val = np.iinfo(np.int64).max + 1
  
      with pytest.raises(KeyError, match=str(val)):
          idx.get_loc(val)
      with pytest.raises(KeyError, match=str(val)):
          idx._engine.get_loc(val)
  
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 8 for calling the TestGetLoc obj's underlying member method code with example usage: obj.test_get_loc_overflows() without return types