code: def test_init_ValueError_when_window_size_argument_is_not_int_or_greater_than_0(
      window_size,
  ):
      """
      Test ValueError is raised when window_size is not an int or greater than 0.
      """
      err_msg = re.escape(
          (
              f"Argument `window_size` must be an integer equal to or "
              f"greater than 1. Got {window_size}."
          )
      )
      with pytest.raises(ValueError, match=err_msg):
          ForecasterAutoregCustom(
              regressor=LinearRegression(),
              fun_predictors=create_predictors,
              window_size=window_size,
          )
  
file_path: skforecast/skforecast/ForecasterAutoregCustom/tests/test_init.py
imports: import re
  import pytest
  import pandas
  import numpy
  from skforecast.ForecasterAutoregCustom import ForecasterAutoregCustom
  from skforecast.exceptions import IgnoredArgumentWarning
  from sklearn.linear_model import LinearRegression
  from sklearn.neighbors import KNeighborsRegressor
label_desc: Use image node_id 2 for calling a global function with example usage: test_init_ValueError_when_window_size_argument_is_not_int_or_greater_than_0(window_size) without return types