code: def test_run_w_folds():
      """[SuperLearner] 'fit' and 'predict' runs correctly with folds."""
  
      with open(os.devnull, "w") as f, redirect_stdout(f):
          ens1.fit(X1, y1)
          pred = ens1.predict(X1)
  
      np.testing.assert_array_equal(pred, G1)
  
file_path: mlens/mlens/ensemble/tests/test_super_learner.py
imports: import numpy
  from mlens.metrics import rmse
  from mlens.utils.exceptions import MetricWarning
  from mlens.index import FoldIndex
  from mlens.testing.dummy import Data, OLS, PREPROCESSING, ESTIMATORS, ECM
  from mlens.ensemble import SuperLearner
  import os
label_desc: Use image node_id 4 for calling a global function with example usage: test_run_w_folds() without return types