code: def test_error_if_encoding_method_not_permitted_value(enc_method):
      with pytest.raises(ValueError):
          CountFrequencyEncoder(encoding_method=enc_method)
  
imports: import warnings
  import numpy
  import pandas
  import pytest
  from numpy import nan
  from feature_engine.encoding import CountFrequencyEncoder
label_desc: Use image node_id 3 for calling a global function with example usage: test_error_if_encoding_method_not_permitted_value(enc_method) without return types