code: def test_set_params_regressor():
      """Test set_params method of Regressor class."""
      regressor = Regressor()
      regressor.set_params(strategy="LightGBM")
      assert regressor._Regressor__strategy == "LightGBM"
      regressor.set_params(strategy="RandomForest")
      assert regressor._Regressor__strategy == "RandomForest"
      regressor.set_params(strategy="ExtraTrees")
      assert regressor._Regressor__strategy == "ExtraTrees"
      regressor.set_params(strategy="RandomForest")
      assert regressor._Regressor__strategy == "RandomForest"
      regressor.set_params(strategy="Tree")
      assert regressor._Regressor__strategy == "Tree"
      regressor.set_params(strategy="AdaBoost")
      assert regressor._Regressor__strategy == "AdaBoost"
      regressor.set_params(strategy="Linear")
      assert regressor._Regressor__strategy == "Linear"
      regressor.set_params(strategy="Bagging")
      assert regressor._Regressor__strategy == "Bagging"
      with pytest.warns(UserWarning) as record:
          regressor.set_params(wrong_strategy="wrong_strategy")
      assert len(record) == 1
  
file_path: MLBox/tests/test_regressor.py
imports: import pytest
  import pandas
  import numpy
  from mlbox.model.regression.regressor import Regressor
  from lightgbm import LGBMRegressor
label_desc: Use image node_id 3 for calling a global function with example usage: test_set_params_regressor() without return types