code: def test_sliding_sequence_subslice():
      g = _graph((2, 6))
      single, several = _feat_getters(g)
      # select the central 4 elements
      four = slice(1, -1)
  
      gen = SlidingFeaturesNodeGenerator(g, window_size=2, batch_size=2)
      seq = gen.flow(four)
      _check_sequence(
          seq,
          [
              ([several(1, 3), several(2, 4)], None),
              ([several(3, 5)], None),
          ],
      )
  
      seq = gen.flow(four, target_distance=2)
      _check_sequence(seq, [([several(1, 3)], [single(4)])])
  
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 9 for calling a global function with example usage: test_sliding_sequence_subslice() without return types