code: def test_bad_input_args(bad_window_length):
      """Test that bad inputs raise value error."""
      X = _make_nested_from_array(
          np.ones(10), n_instances=10, n_columns=1
      )
  
      if not isinstance(bad_window_length, int):
          with pytest.raises(TypeError):
              SlidingWindowSegmenter(
                  window_length=bad_window_length
              ).fit(X).transform(X)
      else:
          with pytest.raises(ValueError):
              SlidingWindowSegmenter(
                  window_length=bad_window_length
              ).fit(X).transform(X)
  
file_path: sktime/sktime/transformations/panel/tests/test_sliding_window_segmenter_transformer.py
imports: import numpy
  import pandas
  import pytest
  from sktime.transformations.panel.segment import SlidingWindowSegmenter
  from sktime.utils._testing.panel import _make_nested_from_array
label_desc: Use image node_id 1 for calling a global function with example usage: test_bad_input_args(bad_window_length) without return types