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