code: def test_error_if_encoding_method_not_allowed():
      with pytest.raises(ValueError):
          OrdinalEncoder(encoding_method="other")
  
file_path: feature_engine/tests/test_encoding/test_ordinal_encoder.py
imports: import numpy
  import pandas
  import pytest
  from feature_engine.encoding import OrdinalEncoder
label_desc: Use image node_id 3 for calling a global function with example usage: test_error_if_encoding_method_not_allowed() without return types