code: def test_timedelta_range_fractional_period(self):
      msg = "Non-integer 'periods' in pd.date_range, pd.timedelta_range"
      with tm.assert_produces_warning(FutureWarning, match=msg):
          rng = timedelta_range("1 days", periods=10.5)
      exp = timedelta_range("1 days", periods=10)
      tm.assert_index_equal(rng, exp)
  
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 13 for calling the TestTimedeltaIndex obj's underlying member method code with example usage: obj.test_timedelta_range_fractional_period() without return types