class_docstr: Tests `strided_moving_window` function defined in `darts.utils.data.tabularization`.
docstr: Checks that appropriate error is thrown when `window_len`
  is set to a value larger than `x.shape[axis]`.
docstr_tok: ["Checks","that","appropriate","error","is","thrown","when","`","window_len","`","is","set","to","a","value","larger","than","`","x.shape","[","axis","]","`","."]
code: def test_strided_moving_window_window_len_too_large_error(self):
      """
      Checks that appropriate error is thrown when `window_len`
      is set to a value larger than `x.shape[axis]`.
      """
      x = np.arange(1)
      with pytest.raises(ValueError) as err:
          strided_moving_window(x, window_len=2, stride=1)
      assert (
          "`window_len` must be less than or equal to x.shape[axis]."
      ) == str(err.value)
  
file_path: darts/darts/tests/utils/tabularization/test_strided_moving_window.py
imports: from itertools import product
  import numpy
  import pytest
  from darts.utils.data.tabularization import strided_moving_window
label_desc: Use image node_id 5 for calling the TestStridedMovingWindow obj's underlying member method code with example usage: obj.test_strided_moving_window_window_len_too_large_error() without return types