code: def test_tricontourset_reuse():
      # If TriContourSet returned from one tricontour(f) call is passed as first
      # argument to another the underlying C++ contour generator will be reused.
      x = [0.0, 0.5, 1.0]
      y = [0.0, 1.0, 0.0]
      z = [1.0, 2.0, 3.0]
      fig, ax = plt.subplots()
      tcs1 = ax.tricontourf(x, y, z)
      tcs2 = ax.tricontour(x, y, z)
      assert tcs2._contour_generator != tcs1._contour_generator
      tcs3 = ax.tricontour(tcs1, z)
      assert tcs3._contour_generator == tcs1._contour_generator
  
imports: import numpy
  from numpy.testing import assert_array_equal, assert_array_almost_equal, assert_array_less
  import numpy.ma.testutils
  import pytest
  import matplotlib
  import matplotlib.pyplot
  import matplotlib.tri
  from matplotlib.path import Path
  from matplotlib.testing.decorators import image_comparison, check_figures_equal
label_desc: Use image node_id 35 for calling a global function with example usage: test_tricontourset_reuse() without return types