code: def test_clustered_subset_tuple_shape():
      """[Base] ClusteredSubsetIndex: test the tuple shape on generation."""
      tup = [
          (tri, tei)
          for tri, tei in ClusteredSubsetIndex(cl, 2, 2).generate(X)
      ]
  
      assert tup == [
          ([(0, 1)], [(1, 5)]),
          ([(1, 2)], [(0, 1), (2, 5)]),
          ([(2, 4)], [(0, 2), (4, 5)]),
          ([(4, 5)], [(0, 4)]),
      ]
  
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 36 for calling a global function with example usage: test_clustered_subset_tuple_shape() without return types