code: def test_preserve_timedeltaindex_type(setup_path):
      # GH9635
      df = DataFrame(np.random.default_rng(2).normal(size=(10, 5)))
      df.index = timedelta_range(
          start="0s", periods=10, freq="1s", name="example"
      )
  
      with ensure_clean_store(setup_path) as store:
          store["df"] = df
          tm.assert_frame_equal(store["df"], df)
  
imports: import contextlib
  import datetime
  import hashlib
  import tempfile
  import time
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, DatetimeIndex, Index, MultiIndex, Series, Timestamp, concat, date_range, period_range, timedelta_range
  import pandas._testing
  from pandas.tests.io.pytables.common import _maybe_remove, ensure_clean_store
  from pandas.io.pytables import HDFStore, read_hdf
label_desc: Use image node_id 36 for calling a global function with example usage: test_preserve_timedeltaindex_type(setup_path) without return types