code: def test_temp_tuple_advanced():
      """[Base] TemporalIndex: test burn_in, step_size and window_size"""
      idx = TemporalIndex(step_size=2, burn_in=10, window=3, lag=2)
      Y = np.arange(20)
      tup = [(tri, tei) for tri, tei in idx.generate(Y)]
      assert tup == [
          ((0, 8), (10, 12)),
          ((7, 10), (12, 14)),
          ((9, 12), (14, 16)),
          ((11, 14), (16, 18)),
          ((13, 16), (18, 20)),
      ]
  
      np.testing.assert_array_equal(
          Y[tup[-1][1][0] : tup[-1][1][1]], Y[-2:]
      )
  
imports: import os
  import subprocess
  import numpy
  from mlens import config
  from mlens.utils import IdTrain
  from mlens.index import FoldIndex, BlendIndex, SubsetIndex, TemporalIndex, ClusteredSubsetIndex, FullIndex
  from mlens.index.base import partition, prune_train
label_desc: Use image node_id 16 for calling a global function with example usage: test_temp_tuple_advanced() without return types