code: def test_color():
      """Basic tests for Color class"""
      x = Color("white")
      assert_array_equal(x.rgba, [1.0] * 4)
      assert_array_equal(x.rgb, [1.0] * 3)
      assert_array_equal(x.RGBA, [255] * 4)
      assert_array_equal(x.RGB, [255] * 3)
      assert_equal(x.value, 1.0)
      assert_equal(x.alpha, 1.0)
      x.rgb = [0, 0, 1]
      assert_array_equal(x.hsv, [240, 1, 1])
      assert_equal(x.hex, "#0000ff")
      x.hex = "#00000000"
      assert_array_equal(x.rgba, [0.0] * 4)
  
file_path: vispy/vispy/color/tests/test_color.py
imports: import numpy
  from numpy.testing import assert_array_equal, assert_allclose
  from vispy.color import Color, ColorArray, get_color_names, Colormap, get_color_dict, get_colormap, get_colormaps
  from vispy.visuals.shaders import Function
  from vispy.util import use_log_level
  from vispy.testing import run_tests_if_main, assert_equal, assert_raises, assert_true
label_desc: Use image node_id 1 for calling a global function with example usage: test_color() without return types