code: def test_raises_error_when_not_allowed_smoothing_param_in_init(
      max_n_categories,
  ):
      with pytest.raises(ValueError):
          RareLabelEncoder(max_n_categories=max_n_categories)
  
file_path: feature_engine/tests/test_encoding/test_rare_label_encoder.py
imports: import pandas
  import pytest
  from feature_engine.encoding import RareLabelEncoder
label_desc: Use image node_id 11 for calling a global function with example usage: test_raises_error_when_not_allowed_smoothing_param_in_init(max_n_categories) without return types