code: def test_time_frame_split(split_index):
      sf = tf.split(split_index)
      assert len(sf) == 10
      assert len(sf.past) == 4
      assert len(sf.future) == 6
      assert sf.metadata == {"x": 42}
      assert sf.tdims
  
      sf = tf.split(split_index, past_length=2, future_length=2)
      assert len(sf) == 4
      assert len(sf.past) == 2
      assert len(sf.future) == 2
      assert np.array_equal(tf.static, sf.static)
      assert sf.metadata == {"x": 42}
      assert sf.tdims
  
      sf = tf.split(split_index, past_length=5, future_length=8)
      assert len(sf.past) == 5
      assert len(sf.future) == 8
      assert np.array_equal(tf.static, sf.static)
      assert sf.metadata == {"x": 42}
      assert sf.tdims
  
file_path: gluonts/test/zebras/test_timeframe.py
imports: import pytest
  import numpy
  import gluonts.zebras
label_desc: Use image node_id 3 for calling a global function with example usage: test_time_frame_split(split_index) without return types