code: def test_create_sample_weights_output_using_weight_func_dict(
      weight_func, expected
  ):
      """
      Test `sample_weights` creation using `weight_func`.
      """
      forecaster = ForecasterAutoregMultiSeriesCustom(
          regressor=LinearRegression(),
          fun_predictors=create_predictors,
          window_size=3,
          weight_func=weight_func,
      )
  
      results = forecaster.create_sample_weights(
          series=series, X_train=X_train, y_train_index=y_train_index
      )
  
      assert np.array_equal(results, expected)
  
file_path: skforecast/skforecast/ForecasterAutoregMultiSeriesCustom/tests/test_create_sample_weights.py
imports: import re
  import pytest
  import numpy
  import pandas
  from skforecast.ForecasterAutoregMultiSeriesCustom import ForecasterAutoregMultiSeriesCustom
  from sklearn.linear_model import LinearRegression
label_desc: Use image node_id 8 for calling a global function with example usage: test_create_sample_weights_output_using_weight_func_dict(weight_func, expected) without return types