code: def test_value_counts_datetime_tz(self, unit):
      values = [
          pd.Timestamp("2011-01-01 09:00", tz="US/Eastern"),
          pd.Timestamp("2011-01-01 10:00", tz="US/Eastern"),
          pd.Timestamp("2011-01-01 11:00", tz="US/Eastern"),
          pd.Timestamp("2011-01-01 09:00", tz="US/Eastern"),
          pd.Timestamp("2011-01-01 09:00", tz="US/Eastern"),
          pd.Timestamp("2011-01-01 11:00", tz="US/Eastern"),
      ]
  
      exp_idx = pd.DatetimeIndex(
          ["2011-01-01 09:00", "2011-01-01 11:00", "2011-01-01 10:00"],
          tz="US/Eastern",
          name="xxx",
      ).as_unit(unit)
      exp = Series([3, 2, 1], index=exp_idx, name="count")
  
      ser = Series(values, name="xxx").dt.as_unit(unit)
      tm.assert_series_equal(ser.value_counts(), exp)
      idx = pd.DatetimeIndex(values, name="xxx").as_unit(unit)
      tm.assert_series_equal(idx.value_counts(), exp)
  
      exp = Series(
          np.array([3.0, 2.0, 1]) / 6.0,
          index=exp_idx,
          name="proportion",
      )
      tm.assert_series_equal(ser.value_counts(normalize=True), exp)
      tm.assert_series_equal(idx.value_counts(normalize=True), exp)
  
file_path: pandas/pandas/tests/series/methods/test_value_counts.py
imports: import numpy
  import pytest
  import pandas
  from pandas import Categorical, CategoricalIndex, Index, Series
  import pandas._testing
label_desc: Use image node_id 2 for calling the TestSeriesValueCounts obj's underlying member method code with example usage: obj.test_value_counts_datetime_tz(unit) without return types