code: def test_known_output_step_2():
      interactions = Interactions(
          np.zeros(5), np.arange(5) + 1, timestamps=np.arange(5)
      )
      sequences = interactions.to_sequence(
          max_sequence_length=5, step_size=2
      ).sequences
  
      expected = np.array(
          [
              [1, 2, 3, 4, 5],
              [0, 0, 1, 2, 3],
              [0, 0, 0, 0, 1],
          ]
      )
  
      assert np.all(sequences == expected)
  
file_path: spotlight/tests/test_interactions.py
imports: import numpy
  import pytest
  from spotlight.cross_validation import random_train_test_split
  from spotlight.datasets import movielens
  from spotlight.interactions import Interactions
label_desc: Use image node_id 6 for calling a global function with example usage: test_known_output_step_2() without return types