code: def test_error_if_not_permitted_value_is_errors():
      age_dict = {"Age": [0, 10, 20, 30, np.Inf]}
      with pytest.raises(ValueError):
          ArbitraryDiscretiser(
              binning_dict=age_dict, errors="medialuna"
          )
  
file_path: feature_engine/tests/test_discretisation/test_arbitrary_discretiser.py
imports: import numpy
  import pandas
  import pytest
  from numpy.random import default_rng
  from scipy.stats import skewnorm
  from sklearn.datasets import fetch_california_housing
  from feature_engine.discretisation import ArbitraryDiscretiser
label_desc: Use image node_id 4 for calling a global function with example usage: test_error_if_not_permitted_value_is_errors() without return types