code: def custom_weights_negative(index):  # pragma: no cover
      """
      Return -1 if index is one of '2022-01-05', '2022-01-06', 1 otherwise.
      """
      weights = np.where(
          (index >= "2022-01-05") & (index <= "2022-01-06"), -1, 1
      )
  
      return weights
  
file_path: skforecast/skforecast/ForecasterAutoregDirect/tests/test_create_sample_weights.py
imports: import re
  import pytest
  import numpy
  import pandas
  from skforecast.ForecasterAutoregDirect import ForecasterAutoregDirect
  from sklearn.linear_model import LinearRegression
label_desc: Use image node_id 3 for calling a global function with example usage: custom_weights_negative(index) and returns: weights