code: def test_create_sample_weights_exceptions_when_weights_all_zeros():
      """
      Test sample_weights exception when the sum of the weights is zero.
      """
      forecaster = ForecasterAutoregMultiSeriesCustom(
          regressor=LinearRegression(),
          fun_predictors=create_predictors,
          window_size=3,
          series_weights={"series_1": 0, "series_2": 0},
      )
  
      err_msg = re.escape(
          (
              "The resulting `weights` cannot be normalized because "
              "the sum of the weights is zero."
          )
      )
      with pytest.raises(ValueError, match=err_msg):
          forecaster.create_sample_weights(
              series=series,
              X_train=X_train,
              y_train_index=y_train_index,
          )
  
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 14 for calling a global function with example usage: test_create_sample_weights_exceptions_when_weights_all_zeros() without return types