code: def test_sliding_generator_invalid():
      with pytest.raises(
          ValueError, match="window_size: expected .* found -123"
      ):
          SlidingFeaturesNodeGenerator(
              example_graph(), window_size=-123
          )
  
      with pytest.raises(
          TypeError, match="window_size: expected int, found NoneType"
      ):
          SlidingFeaturesNodeGenerator(
              example_graph(), window_size=None
          )
  
      with pytest.raises(
          ValueError, match="batch_size: expected .* found 0"
      ):
          SlidingFeaturesNodeGenerator(
              example_graph(), window_size=1, batch_size=0
          )
  
      with pytest.raises(
          TypeError, match="batch_size: expected int, found NoneType"
      ):
          SlidingFeaturesNodeGenerator(
              example_graph(), window_size=1, batch_size=None
          )
  
      with pytest.raises(
          ValueError,
          match="G: expected a graph .* node types: 'A', 'B'",
      ):
          SlidingFeaturesNodeGenerator(example_hin_1(), window_size=1)
  
file_path: stellargraph/tests/mapper/test_sliding.py
imports: import numpy
  import pytest
  from stellargraph import StellarGraph
  from stellargraph.mapper import SlidingFeaturesNodeGenerator, SlidingFeaturesNodeSequence
  from ..test_utils.graphs import example_graph, example_hin_1
label_desc: Use image node_id 1 for calling a global function with example usage: test_sliding_generator_invalid() without return types