code: def test_iteration_over_chunksize(self, offset, monkeypatch):
      # GH#21012
      chunksize = 5
      index = date_range(
          "2000-01-01 00:00:00", periods=chunksize - offset, freq="min"
      )
      num = 0
      with monkeypatch.context() as m:
          m.setattr(datetimes, "_ITER_CHUNKSIZE", chunksize)
          for stamp in index:
              assert index[num] == stamp
              num += 1
      assert num == len(index)
  
file_path: pandas/pandas/tests/indexes/datetimes/test_iter.py
imports: import dateutil.tz
  import numpy
  import pytest
  from pandas import DatetimeIndex, date_range, to_datetime
  from pandas.core.arrays import datetimes
label_desc: Use image node_id 6 for calling the TestDatetimeIndexIteration obj's underlying member method code with example usage: obj.test_iteration_over_chunksize(offset, monkeypatch) without return types