code: def test_invalid_input_forms():
      fig, ax = plt.subplots()
  
      with pytest.raises((TypeError, ValueError)):
          ax.set_prop_cycle(1)
      with pytest.raises((TypeError, ValueError)):
          ax.set_prop_cycle([1, 2])
  
      with pytest.raises((TypeError, ValueError)):
          ax.set_prop_cycle("color", "fish")
  
      with pytest.raises((TypeError, ValueError)):
          ax.set_prop_cycle("linewidth", 1)
      with pytest.raises((TypeError, ValueError)):
          ax.set_prop_cycle("linewidth", {1, 2})
      with pytest.raises((TypeError, ValueError)):
          ax.set_prop_cycle(linewidth=1, color="r")
  
      with pytest.raises((TypeError, ValueError)):
          ax.set_prop_cycle("foobar", [1, 2])
      with pytest.raises((TypeError, ValueError)):
          ax.set_prop_cycle(foobar=[1, 2])
  
      with pytest.raises((TypeError, ValueError)):
          ax.set_prop_cycle(cycler(foobar=[1, 2]))
      with pytest.raises(ValueError):
          ax.set_prop_cycle(cycler(color="rgb", c="cmy"))
  
file_path: matplotlib/lib/matplotlib/tests/test_cycles.py
imports: import contextlib
  from io import StringIO
  import matplotlib
  import matplotlib.pyplot
  import numpy
  import pytest
  from cycler import cycler
label_desc: Use image node_id 12 for calling a global function with example usage: test_invalid_input_forms() without return types