code: def test_linestylecycle_basic():
      fig, ax = plt.subplots()
      ax.set_prop_cycle(cycler("ls", ["-", "--", ":"]))
      for _ in range(4):
          ax.plot(range(10), range(10))
      assert [l.get_linestyle() for l in ax.lines] == [
          "-",
          "--",
          ":",
          "-",
      ]
  
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 5 for calling a global function with example usage: test_linestylecycle_basic() without return types