code: def test_series_box_timestamp():
      rng = date_range("20090415", "20090519", freq="B")
      ser = Series(rng)
      assert isinstance(ser[0], Timestamp)
      assert isinstance(ser.at[1], Timestamp)
      assert isinstance(ser.iat[2], Timestamp)
      assert isinstance(ser.loc[3], Timestamp)
      assert isinstance(ser.iloc[4], Timestamp)
  
      ser = Series(rng, index=rng)
      msg = (
          "Series.__getitem__ treating keys as positions is deprecated"
      )
      with tm.assert_produces_warning(FutureWarning, match=msg):
          assert isinstance(ser[0], Timestamp)
      assert isinstance(ser.at[rng[1]], Timestamp)
      assert isinstance(ser.iat[2], Timestamp)
      assert isinstance(ser.loc[rng[3]], Timestamp)
      assert isinstance(ser.iloc[4], Timestamp)
  
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 9 for calling a global function with example usage: test_series_box_timestamp() without return types