class_docstr: Tests the color_palette function.
docstr: Test the setting of color codes
docstr_tok: ["Test","the","setting","of","color","codes"]
code: def test_color_codes(self):
      """
      Test the setting of color codes
      """
      set_color_codes("accent")
      colors = color_palette("accent") + ["0.06666666666666667"]
      for code, color in zip("bgrmyck", colors):
          rgb_want = mpl.colors.colorConverter.to_rgb(color)
          rgb_got = mpl.colors.colorConverter.to_rgb(code)
          assert rgb_want == rgb_got
      set_color_codes("reset")
  
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 12 for calling the TestColorPaletteFunction obj's underlying member method code with example usage: obj.test_color_codes() without return types