code: def test_ValueError_initialize_lags_when_lags_is_int_lower_than_1():
      """
      Test ValueError is raised when lags is initialized with int lower than 1.
      """
      err_msg = re.escape("Minimum value of lags allowed is 1.")
      with pytest.raises(ValueError, match=err_msg):
          initialize_lags(forecaster_name="ForecasterAutoreg", lags=-10)
  
file_path: skforecast/skforecast/utils/tests/test_initialize_lags.py
imports: import re
  import pytest
  import numpy
  import pandas
  from skforecast.utils import initialize_lags
label_desc: Use image node_id 1 for calling a global function with example usage: test_ValueError_initialize_lags_when_lags_is_int_lower_than_1() without return types