code: def test_sankey3(fig_test, fig_ref):
      ax_test = fig_test.gca()
      s_test = Sankey(
          ax=ax_test,
          flows=[0.25, -0.25, -0.25, 0.25, 0.5, -0.5],
          orientations=[1, -1, 1, -1, 0, 0],
      )
      s_test.finish()
  
      ax_ref = fig_ref.gca()
      s_ref = Sankey(ax=ax_ref)
      s_ref.add(
          flows=[0.25, -0.25, -0.25, 0.25, 0.5, -0.5],
          orientations=[1, -1, 1, -1, 0, 0],
      )
      s_ref.finish()
  
file_path: matplotlib/lib/matplotlib/tests/test_sankey.py
imports: import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  from matplotlib.sankey import Sankey
  from matplotlib.testing.decorators import check_figures_equal
label_desc: Use image node_id 7 for calling a global function with example usage: test_sankey3(fig_test, fig_ref) without return types