code: def custom_weights(index):  # pragma: no cover
      """
      Return 0 if index is between '2022-01-08' and '2022-01-10', 1 otherwise.
      """
      weights = np.where(
          (index >= "2022-01-08") & (index <= "2022-01-10"), 0, 1
      )
  
      return weights
  
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 1 for calling a global function with example usage: custom_weights(index) and returns: weights