code: def test_check_interval_ValueError_when_interval_len_is_not_2():
      """
      Check `ValueError` is raised when `interval` len is not 2.
      """
      err_msg = re.escape(
          (
              "`interval` must contain exactly 2 values, respectively the "
              "lower and upper interval bounds. For example, interval of 95% "
              "should be as `interval = [2.5, 97.5]`."
          )
      )
      with pytest.raises(ValueError, match=err_msg):
          check_interval(interval=[2.5, 50.0, 97.5])
  
file_path: skforecast/skforecast/utils/tests/test_check_interval.py
imports: import re
  import pytest
  import numpy
  import pandas
  from skforecast.utils.utils import check_interval
label_desc: Use image node_id 2 for calling a global function with example usage: test_check_interval_ValueError_when_interval_len_is_not_2() without return types