class_docstr: Tests the color_palette function.
docstr: Assert that color_palette returns a list of RGB tuples
docstr_tok: ["Assert","that","color_palette","returns","a","list","of","RGB","tuples"]
code: def test_palette_is_list_of_tuples(self):
      """
      Assert that color_palette returns a list of RGB tuples
      """
  
      pal_in = np.array(["red", "blue", "green"])
      pal_out = color_palette(pal_in, 3)
  
      assert isinstance(pal_out, list)
      assert isinstance(pal_out[0], tuple)
      assert isinstance(pal_out[0][0], float)
      assert len(pal_out[0]) == 3
  
imports: import pytest
  import numpy
  import matplotlib
  from yellowbrick.exceptions import *
  from yellowbrick.style.palettes import *
  from yellowbrick.style.colors import get_color_cycle
  from yellowbrick.style.rcmod import set_aesthetic, set_palette
  from yellowbrick.style.palettes import color_sequence, color_palette
  from yellowbrick.style.palettes import ColorPalette, PALETTES, SEQUENCES
  from tests.base import VisualTestCase
label_desc: Use image node_id 9 for calling the TestColorPaletteFunction obj's underlying member method code with example usage: obj.test_palette_is_list_of_tuples() without return types