code: def test_init_TypeError_offset_not_int_or_DateOffset():
      """
      Test TypeError is raised when offset is not an int or DateOffset.
      """
  
      err_msg = re.escape(
          (
              "`offset` must be an integer greater than 0 or a "
              "pandas.tseries.offsets. Find more information about offsets in "
              "https://pandas.pydata.org/docs/reference/offset_frequency.html"
          )
      )
      with pytest.raises(TypeError, match=err_msg):
          ForecasterEquivalentDate(
              offset="not_int_or_DateOffset",
              n_offsets=1,
              agg_func=np.mean,
              forecaster_id=None,
          )
  
file_path: skforecast/skforecast/ForecasterBaseline/tests/test_init.py
imports: import sys
  import re
  import pytest
  import numpy
  import skforecast
  from skforecast.ForecasterBaseline import ForecasterEquivalentDate
label_desc: Use image node_id 1 for calling a global function with example usage: test_init_TypeError_offset_not_int_or_DateOffset() without return types