code: def test_legend_plot():
      fig, ax = plt.subplots(subplot_kw=dict(projection="3d"))
      x = np.arange(10)
      ax.plot(x, 5 - x, "o", zdir="y", label="z=1")
      ax.plot(x, x - 5, "o", zdir="y", label="z=-1")
      ax.legend()
  
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 1 for calling a global function with example usage: test_legend_plot() without return types