code: def test_predict_7_steps_with_int_offset_7_n_offsets_2():
      """
      Test predict method with int offset, offset=7 and n_offsets=2.
      """
      forecaster = ForecasterEquivalentDate(
          offset=7, n_offsets=2, agg_func=np.mean
      )
      forecaster.fit(y=y)
      predictions = forecaster.predict(steps=7)
  
      expected = pd.Series(
          data=np.array(
              [
                  0.42058876,
                  0.87984916,
                  0.5973077,
                  0.49243547,
                  0.80475637,
                  0.31755176,
                  0.46509001,
              ]
          ),
          index=pd.date_range(start="2000-02-20", periods=7, freq="D"),
          name="pred",
      )
  
      pd.testing.assert_series_equal(predictions, expected)
  
file_path: skforecast/skforecast/ForecasterBaseline/tests/test_predict.py
imports: import re
  import pytest
  import numpy
  import pandas
  from sklearn.exceptions import NotFittedError
  from skforecast.ForecasterBaseline import ForecasterEquivalentDate
  from .fixtures_ForecasterEquivalentDate import y
label_desc: Use image node_id 4 for calling a global function with example usage: test_predict_7_steps_with_int_offset_7_n_offsets_2() without return types