code: def test_series_box_timedelta():
      rng = timedelta_range("1 day 1 s", periods=5, freq="h")
      ser = Series(rng)
      assert isinstance(ser[0], Timedelta)
      assert isinstance(ser.at[1], Timedelta)
      assert isinstance(ser.iat[2], Timedelta)
      assert isinstance(ser.loc[3], Timedelta)
      assert isinstance(ser.iloc[4], Timedelta)
  
imports: from datetime import timedelta
  import re
  import numpy
  import pytest
  from pandas.errors import IndexingError
  from pandas import NA, DataFrame, Index, IndexSlice, MultiIndex, NaT, Series, Timedelta, Timestamp, concat, date_range, isna, period_range, timedelta_range
  import pandas._testing
label_desc: Use image node_id 10 for calling a global function with example usage: test_series_box_timedelta() without return types