code: def test_timedelta_cut_roundtrip():
      # see gh-19891
      ser = Series(timedelta_range("1day", periods=3))
      result, result_bins = cut(ser, 2, retbins=True)
  
      expected = cut(ser, result_bins)
      tm.assert_series_equal(result, expected)
  
      expected_bins = TimedeltaIndex(
          [
              "0 days 23:57:07.200000",
              "2 days 00:00:00",
              "3 days 00:00:00",
          ]
      )
      tm.assert_index_equal(result_bins, expected_bins)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import Categorical, DataFrame, DatetimeIndex, Index, Interval, IntervalIndex, Series, TimedeltaIndex, Timestamp, cut, date_range, interval_range, isna, qcut, timedelta_range, to_datetime
  import pandas._testing
  from pandas.api.types import CategoricalDtype
  import pandas.core.reshape.tile
label_desc: Use image node_id 37 for calling a global function with example usage: test_timedelta_cut_roundtrip() without return types