code: def test_param_from_bad_line_raises(line: str):
      with pytest.raises(DocstringError):
          Param.from_line(line)
  
file_path: allennlp/scripts/tests/py2md/py2md_test.py
imports: from typing import Optional
  import pytest
  from allennlp.common.testing import AllenNlpTestCase
  from scripts.py2md import py2md, Param, DocstringError
label_desc: Use image node_id 2 for calling a global function with example usage: test_param_from_bad_line_raises(line) without return types