code: def vertices_to_triangles_values(triangles, vts_values):
      """Change from values per vertex to values per triangle
  
      Parameters
      ----------
      triangles : [n, 3] -> m array
          A list of triangles from a mesh
      vts_values : [m, .] array
          List of values to interpolates from coordinates along vertices,
          (vertices, vertices_normal, vertices_colors ...)
  
      Returns
      -------
      triangles_values : [m] array
          List of values for each triangle in the mesh
  
      See Also
      --------
      random_coordinates_from_surface
      """
      return np.mean(vts_values[triangles], axis=1)
  
imports: import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: vertices_to_triangles_values(triangles, vts_values) and returns: np