code: def test_error_when_missing_only_not_bool():
      with pytest.raises(ValueError):
          DropMissingData(missing_only="missing_only")
  
file_path: feature_engine/tests/test_imputation/test_drop_missing_data.py
imports: import pytest
  from feature_engine.imputation import DropMissingData
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