code: def test_window():
      """test_window"""
      value = [[e] for e in range(100)]
      value = tfio.IOTensor.from_tensor(tf.constant(value))
      value = value.window(3)
      expected_value = [[e, e + 1, e + 2] for e in range(98)]
      assert np.all(value.to_tensor() == expected_value)
  
      v = tfio.IOTensor.from_tensor(tf.constant([1, 2, 3, 4, 5]))
      v = v.window(3)
      assert np.all(v.to_tensor() == [[1, 2, 3], [2, 3, 4], [3, 4, 5]])
  
imports: import os
  import shutil
  import tempfile
  import numpy
  import pytest
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 1 for calling a global function with example usage: test_window() without return types