code: def test_set_lags_when_lags_argument_is_1d_numpy_array():
      """
      Test how lags and max_lag attributes change when lags argument is 1d numpy
      array of positive integers.
      """
      forecaster = ForecasterAutoregMultiVariate(
          LinearRegression(), level="l1", lags=3, steps=2
      )
      forecaster.set_lags(lags=np.array([1, 2, 3]))
  
      assert (forecaster.lags == np.array([1, 2, 3])).all()
      assert forecaster.max_lag == 3
  
file_path: skforecast/skforecast/ForecasterAutoregMultiVariate/tests/test_set_lags.py
imports: import re
  import pytest
  import numpy
  import pandas
  from skforecast.ForecasterAutoregMultiVariate import ForecasterAutoregMultiVariate
  from sklearn.linear_model import LinearRegression
label_desc: Use image node_id 3 for calling a global function with example usage: test_set_lags_when_lags_argument_is_1d_numpy_array() without return types