code: def test_exceptions():
      # TODO should this test more options?
      with pytest.raises(ValueError):
          plt.subplots(2, 2, sharex="blah")
      with pytest.raises(ValueError):
          plt.subplots(2, 2, sharey="blah")
  
imports: import itertools
  import numpy
  import pytest
  from matplotlib.axes import Axes, SubplotBase
  import matplotlib.pyplot
  from matplotlib.testing.decorators import check_figures_equal, image_comparison
label_desc: Use image node_id 9 for calling a global function with example usage: test_exceptions() without return types