code: def build_ensemble(**kwargs):
      """Generate ensemble."""
  
      ens = SuperLearner(**kwargs)
  
      est = [ElasticNet(copy_X=False), Lasso(copy_X=False)]
  
      ens.add(est)
      ens.add(KNeighborsRegressor())
  
      return ens
  
file_path: mlens/benchmarks/friedman_memory.py
imports: import numpy
  from mlens.utils import print_time
  from mlens.ensemble import SuperLearner
  from sklearn.datasets import make_friedman1
  from sklearn.linear_model import Lasso, ElasticNet
  from sklearn.neighbors import KNeighborsRegressor
  import time
label_desc: Use image node_id 1 for calling a global function with example usage: build_ensemble() and returns: ens