code: def test_create_sample_weights_output():
      """
      Test sample_weights creation.
      """
      forecaster = ForecasterAutoregMultiVariate(
          level="series_1",
          lags=3,
          steps=3,
          regressor=LinearRegression(),
          weight_func=custom_weights,
      )
  
      expected = np.array([1, 0, 0, 0, 1])
      results = forecaster.create_sample_weights(X_train=X_train)
  
      assert np.array_equal(results, expected)
  
file_path: skforecast/skforecast/ForecasterAutoregMultiVariate/tests/test_create_sample_weights.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 5 for calling a global function with example usage: test_create_sample_weights_output() without return types