code: def series_with_dt_index(n):
      """Helper fn to create a monotonic series with Datetime index"""
      time_column = []
      date = datetime.date(2022, 1, 1)
  
      for i in range(n):
          time_column.append(date + datetime.timedelta(days=i))
  
      return pd.Series(range(n), index=time_column)
  
imports: from pmdarima.utils.array import diff, diff_inv, c, is_iterable, as_series, check_exog, check_endog
  from pmdarima.utils import get_callable
  from numpy.testing import assert_array_equal, assert_array_almost_equal
  import datetime
  import pytest
  import pandas
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: series_with_dt_index(n) and returns: pd