code: def test_raises_error_when_not_allowed_smoothing_param_in_init(
      drop_binary,
  ):
      with pytest.raises(ValueError):
          OneHotEncoder(drop_last_binary=drop_binary)
  
file_path: feature_engine/tests/test_encoding/test_onehot_encoder.py
imports: import pandas
  import pytest
  from sklearn.pipeline import Pipeline
  from feature_engine.encoding import OneHotEncoder
label_desc: Use image node_id 15 for calling a global function with example usage: test_raises_error_when_not_allowed_smoothing_param_in_init(drop_binary) without return types