code: def _check_sequence(seq, expected):
      assert len(seq) == len(expected)
      for (feats, targets), (exp_feats, exp_targets) in zip(
          seq, expected
      ):
          assert len(feats) == 1
          np.testing.assert_array_equal(feats[0], exp_feats)
          if exp_targets is None:
              assert targets is None
          else:
              np.testing.assert_array_equal(targets, exp_targets)
  
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 6 for calling a global function with example usage: _check_sequence(seq, expected) without return types