code: def test_fancy():
      fig, ax = plt.subplots(subplot_kw=dict(projection="3d"))
      ax.plot(
          np.arange(10),
          np.full(10, 5),
          np.full(10, 5),
          "o--",
          label="line",
      )
      ax.scatter(np.arange(10), np.arange(10, 0, -1), label="scatter")
      ax.errorbar(
          np.full(10, 5),
          np.arange(10),
          np.full(10, 10),
          xerr=0.5,
          zerr=0.5,
          label="errorbar",
      )
      ax.legend(
          loc="lower left", ncols=2, title="My legend", numpoints=1
      )
  
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 3 for calling a global function with example usage: test_fancy() without return types