code: def test_date_tz(self):
      # GH11757
      rng = DatetimeIndex(
          ["2014-04-04 23:56", "2014-07-18 21:24", "2015-11-22 22:14"],
          tz="US/Eastern",
      )
      ser = Series(rng)
      expected = Series(
          [date(2014, 4, 4), date(2014, 7, 18), date(2015, 11, 22)]
      )
      tm.assert_series_equal(ser.dt.date, expected)
      tm.assert_series_equal(ser.apply(lambda x: x.date()), 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 33 for calling the TestSeriesDatetimeValues obj's underlying member method code with example usage: obj.test_date_tz() without return types