code: def test_subset_raises_on_float():
      """[Base] SubsetIndex: check raises error on floats for n_part, n_split."""
      with np.testing.assert_raises(ValueError):
          SubsetIndex(0.5, 2, X=X)
  
      with np.testing.assert_raises(ValueError):
          SubsetIndex(2, 0.5, X=X)
  
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 41 for calling a global function with example usage: test_subset_raises_on_float() without return types