code: def test_legend_bar():
      fig, ax = plt.subplots(subplot_kw=dict(projection="3d"))
      x = np.arange(10)
      b1 = ax.bar(x, x, zdir="y", align="edge", color="m")
      b2 = ax.bar(x, x[::-1], zdir="x", align="edge", color="g")
      ax.legend([b1[0], b2[0]], ["up", "down"])
  
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 2 for calling a global function with example usage: test_legend_bar() without return types