code: def test_scatter_kwargs_type():
      kwargs = "not a dictionary"
      sr.fit(X[:, :2], y)
      message = (
          "d must be of type dict or None, but got "
          "{} instead".format(type(kwargs))
      )
      assert_raises(
          TypeError,
          message,
          plot_decision_regions,
          X[:, :2],
          y,
          sr,
          scatter_kwargs=kwargs,
      )
  
file_path: mlxtend/mlxtend/plotting/tests/test_decision_regions.py
imports: import matplotlib.pyplot
  import numpy
  from mlxtend.classifier import SoftmaxRegression
  from mlxtend.data import iris_data
  from mlxtend.plotting import plot_decision_regions
  from mlxtend.utils import assert_raises
label_desc: Use image node_id 9 for calling a global function with example usage: test_scatter_kwargs_type() without return types