code: def test_set_params_encoder():
      """Test set_params method of Categorical_encoder class."""
      encoder = Categorical_encoder()
      encoder.set_params(strategy="label_encoding")
      assert encoder.strategy == "label_encoding"
      encoder.set_params(strategy="dummification")
      assert encoder.strategy == "dummification"
      encoder.set_params(strategy="random_projection")
      assert encoder.strategy == "random_projection"
      encoder.set_params(strategy="entity_embedding")
      assert encoder.strategy == "entity_embedding"
      encoder.set_params(verbose=True)
      assert encoder.verbose
      encoder.set_params(verbose=False)
      assert not encoder.verbose
      with pytest.warns(UserWarning) as record:
          encoder.set_params(_Categorical_encoder__Lcat=[])
      assert len(record) == 1
  
file_path: MLBox/tests/test_categorical_encoder.py
imports: import pytest
  import pandas
  from mlbox.encoding.categorical_encoder import Categorical_encoder
label_desc: Use image node_id 3 for calling a global function with example usage: test_set_params_encoder() without return types