code: def test_legend_Poly3dCollection():
      verts = np.asarray([[0, 0, 0], [0, 1, 1], [1, 0, 1]])
      mesh = art3d.Poly3DCollection([verts], label="surface")
  
      fig, ax = plt.subplots(subplot_kw={"projection": "3d"})
      mesh.set_edgecolor("k")
      handle = ax.add_collection3d(mesh)
      leg = ax.legend()
      assert (
          leg.legend_handles[0].get_facecolor()
          == handle.get_facecolor()
      ).all()
  
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 8 for calling a global function with example usage: test_legend_Poly3dCollection() without return types