code: def test_float64_ns_rounded(self):
      # GH#23539 without specifying a unit, floats are regarded as nanos,
      #  and fractional portions are truncated
      tdi = TimedeltaIndex([2.3, 9.7])
      expected = TimedeltaIndex([2, 9])
      tm.assert_index_equal(tdi, expected)
  
      # integral floats are non-lossy
      tdi = TimedeltaIndex([2.0, 9.0])
      expected = TimedeltaIndex([2, 9])
      tm.assert_index_equal(tdi, expected)
  
      # NaNs get converted to NaT
      tdi = TimedeltaIndex([2.0, np.nan])
      expected = TimedeltaIndex([Timedelta(nanoseconds=2), pd.NaT])
      tm.assert_index_equal(tdi, expected)
  
imports: from datetime import timedelta
  import numpy
  import pytest
  import pandas
  from pandas import Timedelta, TimedeltaIndex, timedelta_range, to_timedelta
  import pandas._testing
  from pandas.core.arrays.timedeltas import TimedeltaArray
label_desc: Use image node_id 8 for calling the TestTimedeltaIndex obj's underlying member method code with example usage: obj.test_float64_ns_rounded() without return types