code: def test_analysis_validate_attrs_invalid(attr):
      with pytest.raises(ValueError):
          validate_attrs([attr])
  
file_path: spaCy/spacy/tests/pipeline/test_analysis.py
imports: import pytest
  from mock import Mock
  from spacy.language import Language
  from spacy.pipe_analysis import get_attr_info, validate_attrs
label_desc: Use image node_id 4 for calling a global function with example usage: test_analysis_validate_attrs_invalid(attr) without return types