def test_strided_moving_window_pass_invalid_axis_error(self):
        """
        Checks that appropriate error is thrown when `axis`
        is set to a non-`int` value, or a value not less than
        `x.ndim`.
        """
        x = np.arange(1)
        # `axis` NOT an int:
        with pytest.raises(ValueError) as err:
            strided_moving_window(x, window_len=1, stride=1, axis=0.1)
        assert ("`axis` must be an `int` that is less than `x.ndim`.") == str(err.value)
        # `axis` NOT < x.ndim:
        with pytest.raises(ValueError) as err:
            strided_moving_window(x, window_len=1, stride=1, axis=1)
        assert ("`axis` must be an `int` that is less than `x.ndim`.") == str(err.value)

        Checks that appropriate error is thrown when `axis`
        is set to a non-`int` value, or a value not less than
        `x.ndim`.
        
darts/tests/utils/tabularization/test_strided_moving_window.py