code: def test_datetime_tz_cut(bins, box):
      # see gh-19872
      tz = "US/Eastern"
      ser = Series(date_range("20130101", periods=3, tz=tz))
  
      if not isinstance(bins, int):
          bins = box(bins)
  
      result = cut(ser, bins)
      expected = Series(
          IntervalIndex(
              [
                  Interval(
                      Timestamp("2012-12-31 23:57:07.200000", 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 numpy
  import pytest
  import pandas
  from pandas import Categorical, DataFrame, DatetimeIndex, Index, Interval, IntervalIndex, Series, TimedeltaIndex, Timestamp, cut, date_range, interval_range, isna, qcut, timedelta_range, to_datetime
  import pandas._testing
  from pandas.api.types import CategoricalDtype
  import pandas.core.reshape.tile
label_desc: Use image node_id 33 for calling a global function with example usage: test_datetime_tz_cut(bins, box) without return types