code: def test_linestyle():
      linestyles = {
          "solid": "none",
          "-": "none",
          "dashed": "5.550000000000001,2.4000000000000004",
          "--": "5.550000000000001,2.4000000000000004",
          "dotted": "1.5,2.4749999999999996",
          ":": "1.5,2.4749999999999996",
          "dashdot": "9.600000000000001,2.4000000000000004,1.5,2.4000000000000004",
          "-.": "9.600000000000001,2.4000000000000004,1.5,2.4000000000000004",
          "": None,
          "None": None,
      }
  
      for ls, result in linestyles.items():
          (line,) = plt.plot([1, 2, 3], linestyle=ls)
          assert_equal(utils.get_dasharray(line), result)
  
imports: from numpy.testing import assert_allclose, assert_equal
  from .None import plt
  from ..None import utils
label_desc: Use image node_id 2 for calling a global function with example usage: test_linestyle() without return types