code: def test_error_when_missing_only_not_bool():
      with pytest.raises(ValueError):
          AddMissingIndicator(missing_only="missing_only")
  
file_path: feature_engine/tests/test_imputation/test_missing_indicator.py
imports: import pytest
  from sklearn.pipeline import Pipeline
  from feature_engine.imputation import AddMissingIndicator
label_desc: Use image node_id 5 for calling a global function with example usage: test_error_when_missing_only_not_bool() without return types