code: def test_yield_return():
      with pytest.raises(ValueError):
          Docstring(bad_yields)
  
file_path: statsmodels/statsmodels/tools/tests/test_docstring.py
imports: import pytest
  from statsmodels.tools.docstring import Docstring, remove_parameters, Parameter
label_desc: Use image node_id 8 for calling a global function with example usage: test_yield_return() without return types