code: def test_subset_equiv():
      """[Subsemble] Test equivalence with SuperLearner for J=1."""
  
      sub = Subsemble(partitions=1)
      sl = SuperLearner()
  
      sub.add(ECM, dtype=np.float64)
      sl.add(ECM, dtype=np.float64)
  
      F = sub.fit(X, y).predict(X)
      P = sl.fit(X, y).predict(X)
  
      np.testing.assert_array_equal(P, F)
  
imports: import numpy
  from mlens.testing.dummy import OLS, ECM
  from mlens.testing import Data
  from mlens.ensemble import Subsemble, SuperLearner
label_desc: Use image node_id 2 for calling a global function with example usage: test_subset_equiv() without return types