code: def test_sankey_errors(kwargs, msg):
      with pytest.raises(ValueError, match=msg):
          Sankey(**kwargs)
  
file_path: matplotlib/lib/matplotlib/tests/test_sankey.py
imports: import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  from matplotlib.sankey import Sankey
  from matplotlib.testing.decorators import check_figures_equal
label_desc: Use image node_id 4 for calling a global function with example usage: test_sankey_errors(kwargs, msg) without return types