code: def test_get_loc_float64(self):
      idx = Index([0.0, 1.0, 2.0], dtype=np.float64)
  
      with pytest.raises(KeyError, match="^'foo'$"):
          idx.get_loc("foo")
      with pytest.raises(KeyError, match=r"^1\.5$"):
          idx.get_loc(1.5)
      with pytest.raises(KeyError, match="^True$"):
          idx.get_loc(True)
      with pytest.raises(KeyError, match="^False$"):
          idx.get_loc(False)
  
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 3 for calling the TestGetLoc obj's underlying member method code with example usage: obj.test_get_loc_float64() without return types