code: def test_extra_kwargs_raise():
      fig, ax = plt.subplots()
  
      for scale in ["linear", "log", "symlog"]:
          with pytest.raises(TypeError):
              ax.set_yscale(scale, foo="mask")
  
imports: import copy
  import matplotlib.pyplot
  from matplotlib.scale import AsinhScale, AsinhTransform, LogTransform, InvertedLogTransform, SymmetricalLogTransform
  import matplotlib.scale
  from matplotlib.ticker import AsinhLocator, LogFormatterSciNotation
  from matplotlib.testing.decorators import check_figures_equal, image_comparison
  import numpy
  from numpy.testing import assert_allclose
  import io
  import pytest
label_desc: Use image node_id 7 for calling a global function with example usage: test_extra_kwargs_raise() without return types