code: def test_error_if_return_object_not_bool():
      with pytest.raises(ValueError):
          EqualWidthDiscretiser(return_object="other")
  
file_path: feature_engine/tests/test_discretisation/test_equal_width_discretiser.py
imports: import pandas
  import pytest
  from sklearn.exceptions import NotFittedError
  from feature_engine.discretisation import EqualWidthDiscretiser
label_desc: Use image node_id 4 for calling a global function with example usage: test_error_if_return_object_not_bool() without return types