code: def test_wrap_failure():
      with pytest.raises(ValueError, match="^The decorated function"):
  
          @check_figures_equal()
          def should_fail(test, ref):
              pass
  
file_path: matplotlib/lib/matplotlib/tests/test_testing.py
imports: import warnings
  import pytest
  import matplotlib.pyplot
  from matplotlib.testing.decorators import check_figures_equal
label_desc: Use image node_id 3 for calling a global function with example usage: test_wrap_failure() without return types