code: def test_parse_color():
      """Test color parse function"""
      assert parse_color("#123") == (17, 34, 51, 1.0, "#rgb")
      assert parse_color("#cdf") == (204, 221, 255, 1.0, "#rgb")
      assert parse_color("#a3d7") == (170, 51, 221, 119 / 255, "#rgba")
      assert parse_color("#584b4f") == (88, 75, 79, 1.0, "#rrggbb")
      assert parse_color("#8cbe22") == (140, 190, 34, 1.0, "#rrggbb")
      assert parse_color("#16cbf055") == (
          22,
          203,
          240,
          1 / 3,
          "#rrggbbaa",
      )
      assert parse_color("rgb(134, 67, 216)") == (
          134,
          67,
          216,
          1.0,
          "rgb",
      )
      assert parse_color("rgb(0, 111, 222)") == (
          0,
          111,
          222,
          1.0,
          "rgb",
      )
      assert parse_color("rgba(237, 83, 48, .8)") == (
          237,
          83,
          48,
          0.8,
          "rgba",
      )
      assert parse_color("rgba(0, 1, 0, 0.1223)") == (
          0,
          1,
          0,
          0.1223,
          "rgba",
      )
  
imports: from __future__ import division
  from pygal.colors import darken, desaturate, hsl_to_rgb, lighten, parse_color, rgb_to_hsl, rotate, saturate, unparse_color
label_desc: Use image node_id 1 for calling a global function with example usage: test_parse_color() without return types