code: def __init__(
      self,
      endog,
      exog=None,
      dates=None,
      freq=None,
      missing="none",
      **kwargs,
  ):
      super().__init__(endog, exog, missing=missing, **kwargs)
  
      # Date handling in indexes
      self._init_dates(dates, freq)
  
imports: from __future__ import annotations
  from statsmodels.compat.pandas import is_float_index, is_int_index, is_numeric_dtype
  import numbers
  import warnings
  import numpy
  from pandas import DatetimeIndex, Index, Period, PeriodIndex, RangeIndex, Series, Timestamp, date_range, period_range, to_datetime
  from pandas.tseries.frequencies import to_offset
  from statsmodels.base.data import PandasData
  import statsmodels.base.model
  import statsmodels.base.wrapper
  from statsmodels.tools.sm_exceptions import ValueWarning
label_desc: Use image node_id 1 to create a new TimeSeriesModel object from inherited base classes: base with example: obj = TimeSeriesModel(endog, exog, dates, freq, missing)