code: def test_datetime_tz_qcut(bins):
      # see gh-19872
      tz = "US/Eastern"
      ser = Series(date_range("20130101", periods=3, tz=tz))
  
      result = qcut(ser, bins)
      expected = Series(
          IntervalIndex(
              [
                  Interval(
                      Timestamp("2012-12-31 23:59:59.999999999", tz=tz),
                      Timestamp("2013-01-01 16:00:00", tz=tz),
                  ),
                  Interval(
                      Timestamp("2013-01-01 16:00:00", tz=tz),
                      Timestamp("2013-01-02 08:00:00", tz=tz),
                  ),
                  Interval(
                      Timestamp("2013-01-02 08:00:00", tz=tz),
                      Timestamp("2013-01-03 00:00:00", tz=tz),
                  ),
              ]
          )
      ).astype(CategoricalDtype(ordered=True))
      tm.assert_series_equal(result, expected)
  
imports: import os
  import numpy
  import pytest
  import pandas
  from pandas import Categorical, DatetimeIndex, Interval, IntervalIndex, NaT, Series, Timedelta, TimedeltaIndex, Timestamp, cut, date_range, isna, qcut, timedelta_range
  import pandas._testing
  from pandas.api.types import CategoricalDtype
  from pandas.tseries.offsets import Day
label_desc: Use image node_id 16 for calling a global function with example usage: test_datetime_tz_qcut(bins) without return types