code: def test_set_params(algo):
      x = np.linspace(0, 1, 50)
      y = 2 * x
  
      model = algo(alpha=0.01)
      model.fit(x, y)
      coef_before = model.coef_
  
      model = algo(selection="random", alpha=0.1)
      model.fit(x, y)
      coef_after = model.coef_
  
      model = algo(alpha=0.01)
      model.set_params(**{"selection": "random", "alpha": 0.1})
      model.fit(x, y)
      coef_test = model.coef_
  
      assert coef_before != coef_after
      assert coef_after == coef_test
  
file_path: cuml/python/cuml/tests/test_coordinate_descent.py
imports: from sklearn.model_selection import train_test_split
  from sklearn.datasets import make_regression
  from sklearn.linear_model import Lasso, ElasticNet
  from cuml.testing.utils import unit_param, quality_param, stress_param
  from cuml.metrics import r2_score
  from cuml.linear_model import ElasticNet
  from cuml import Lasso
  import pytest
  from cuml.internals.safe_imports import cpu_only_import
label_desc: Use image node_id 8 for calling a global function with example usage: test_set_params(algo) without return types