code: def test_mesh_color():
      # Create visual
      vertices, filled_indices, outline_indices = create_cube()
      axis = scene.visuals.Mesh(
          vertices["position"],
          outline_indices,
          color="black",
          mode="lines",
      )
  
      # Change color (regression test for a bug that caused this to reset
      # the vertex data to None)
  
      axis.color = (0.1, 0.3, 0.7, 0.9)
  
      new_vertices = axis.mesh_data.get_vertices()
  
      np.testing.assert_allclose(axis.color.rgba, (0.1, 0.3, 0.7, 0.9))
      np.testing.assert_allclose(vertices["position"], new_vertices)
  
file_path: vispy/vispy/visuals/tests/test_mesh.py
imports: import numpy
  from vispy import scene
  from vispy.color import Color
  from vispy.geometry import create_cube, create_sphere
  from vispy.testing import TestingCanvas, requires_application, run_tests_if_main, requires_pyopengl
  from vispy.visuals.filters import ShadingFilter, WireframeFilter
  from vispy.visuals.filters.mesh import _as_rgba
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_mesh_color() without return types