code: def test_ValueError_when_order_is_less_than_1_when_initialization():
      """
      Raise ValueError if order is less than 1 when initializing the differentiator.
      """
      order = 0
  
      err_msg = re.escape(
          (
              f"Parameter 'order' must be an integer greater than 0. "
              f"Found {order}."
          )
      )
      with pytest.raises(ValueError, match=err_msg):
          TimeSeriesDifferentiator(order=order)
  
imports: import re
  import pytest
  from skforecast.preprocessing import TimeSeriesDifferentiator
label_desc: Use image node_id 2 for calling a global function with example usage: test_ValueError_when_order_is_less_than_1_when_initialization() without return types