code: def test_floating_index_doc_example(self):
      index = Index([1.5, 2, 3, 4.5, 5])
      s = Series(range(5), index=index)
      assert s[3] == 2
      assert s.loc[3] == 2
      assert s.iloc[3] == 3
  
imports: import numpy
  import pytest
  from pandas import DataFrame, Index, RangeIndex, Series, date_range, period_range, timedelta_range
  import pandas._testing
label_desc: Use image node_id 14 for calling the TestFloatIndexers obj's underlying member method code with example usage: obj.test_floating_index_doc_example() without return types