code: def test_linecollection_scaled_dashes():
      lines1 = [[(0, 0.5), (0.5, 1)], [(0.3, 0.6), (0.2, 0.2)]]
      lines2 = [[[0.7, 0.2], [0.8, 0.4]], [[0.5, 0.7], [0.6, 0.1]]]
      lines3 = [[[0.6, 0.2], [0.8, 0.4]], [[0.5, 0.7], [0.1, 0.1]]]
      lc1 = art3d.Line3DCollection(lines1, linestyles="--", lw=3)
      lc2 = art3d.Line3DCollection(lines2, linestyles="-.")
      lc3 = art3d.Line3DCollection(lines3, linestyles=":", lw=0.5)
  
      fig, ax = plt.subplots(subplot_kw=dict(projection="3d"))
      ax.add_collection(lc1)
      ax.add_collection(lc2)
      ax.add_collection(lc3)
  
      leg = ax.legend([lc1, lc2, lc3], ["line1", "line2", "line 3"])
      h1, h2, h3 = leg.legend_handles
  
      for oh, lh in zip((lc1, lc2, lc3), (h1, h2, h3)):
          assert oh.get_linestyles()[0] == lh._dash_pattern
  
file_path: matplotlib/lib/mpl_toolkits/mplot3d/tests/test_legend3d.py
imports: import numpy
  import matplotlib
  from matplotlib.colors import same_color
  from matplotlib.testing.decorators import image_comparison
  import matplotlib.pyplot
  from mpl_toolkits.mplot3d import art3d
label_desc: Use image node_id 4 for calling a global function with example usage: test_linecollection_scaled_dashes() without return types