code: def test_check_interval_TypeError_when_interval_is_not_a_list():
      """
      Check `TypeError` is raised when `interval` is not a `list`.
      """
      err_msg = re.escape(
          (
              "`interval` must be a `list`. For example, interval of 95% "
              "should be as `interval = [2.5, 97.5]`."
          )
      )
      with pytest.raises(TypeError, match=err_msg):
          check_interval(interval="not_a_list")
  
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 1 for calling a global function with example usage: test_check_interval_TypeError_when_interval_is_not_a_list() without return types