code: def test_error_when_imputation_method_is_not_permitted():
      with pytest.raises(ValueError):
          EndTailImputer(imputation_method="arbitrary")
  
file_path: feature_engine/tests/test_imputation/test_end_tail_imputer.py
imports: import numpy
  import pandas
  import pytest
  from feature_engine.imputation import EndTailImputer
label_desc: Use image node_id 6 for calling a global function with example usage: test_error_when_imputation_method_is_not_permitted() without return types