code: def test_strftime(self):
      # GH 10086
      ser = Series(date_range("20130101", periods=5))
      result = ser.dt.strftime("%Y/%m/%d")
      expected = Series(
          [
              "2013/01/01",
              "2013/01/02",
              "2013/01/03",
              "2013/01/04",
              "2013/01/05",
          ]
      )
      tm.assert_series_equal(result, expected)
  
      ser = Series(date_range("2015-02-03 11:22:33.4567", periods=5))
      result = ser.dt.strftime("%Y/%m/%d %H-%M-%S")
      expected = Series(
          [
              "2015/02/03 11-22-33",
              "2015/02/04 11-22-33",
              "2015/02/05 11-22-33",
              "2015/02/06 11-22-33",
              "2015/02/07 11-22-33",
          ]
      )
      tm.assert_series_equal(result, expected)
  
      ser = Series(period_range("20130101", periods=5))
      result = ser.dt.strftime("%Y/%m/%d")
      expected = Series(
          [
              "2013/01/01",
              "2013/01/02",
              "2013/01/03",
              "2013/01/04",
              "2013/01/05",
          ]
      )
      tm.assert_series_equal(result, expected)
  
      ser = Series(
          period_range("2015-02-03 11:22:33.4567", periods=5, freq="s")
      )
      result = ser.dt.strftime("%Y/%m/%d %H-%M-%S")
      expected = Series(
          [
              "2015/02/03 11-22-33",
              "2015/02/03 11-22-34",
              "2015/02/03 11-22-35",
              "2015/02/03 11-22-36",
              "2015/02/03 11-22-37",
          ]
      )
      tm.assert_series_equal(result, expected)
  
imports: import calendar
  from datetime import date, datetime, time
  import locale
  import unicodedata
  import numpy
  import pytest
  import pytz
  from pandas._libs.tslibs.timezones import maybe_get_tz
  from pandas.errors import SettingWithCopyError
  from pandas.core.dtypes.common import is_integer_dtype, is_list_like
  import pandas
  from pandas import DataFrame, DatetimeIndex, Index, Period, PeriodIndex, Series, TimedeltaIndex, date_range, period_range, timedelta_range
  import pandas._testing
  from pandas.core.arrays import DatetimeArray, PeriodArray, TimedeltaArray
label_desc: Use image node_id 21 for calling the TestSeriesDatetimeValues obj's underlying member method code with example usage: obj.test_strftime() without return types