code: def test_tripcolor():
      x = np.asarray([0, 0.5, 1, 0, 0.5, 1, 0, 0.5, 1, 0.75])
      y = np.asarray([0, 0, 0, 0.5, 0.5, 0.5, 1, 1, 1, 0.75])
      triangles = np.asarray(
          [
              [0, 1, 3],
              [1, 4, 3],
              [1, 2, 4],
              [2, 5, 4],
              [3, 4, 6],
              [4, 7, 6],
              [4, 5, 9],
              [7, 4, 9],
              [8, 7, 9],
              [5, 8, 9],
          ]
      )
  
      # Triangulation with same number of points and triangles.
      triang = mtri.Triangulation(x, y, triangles)
  
      Cpoints = x + 0.5 * y
  
      xmid = x[triang.triangles].mean(axis=1)
      ymid = y[triang.triangles].mean(axis=1)
      Cfaces = 0.5 * xmid + ymid
  
      plt.subplot(121)
      plt.tripcolor(triang, Cpoints, edgecolors="k")
      plt.title("point colors")
  
      plt.subplot(122)
      plt.tripcolor(triang, facecolors=Cfaces, edgecolors="k")
      plt.title("facecolors")
  
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 9 for calling a global function with example usage: test_tripcolor() without return types