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