code: def test_color_codes(self):
      palettes.set_color_codes("deep")
      colors = palettes.color_palette("deep6") + [".1"]
      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
      palettes.set_color_codes("reset")
  
      with pytest.raises(ValueError):
          palettes.set_color_codes("Set1")
  
imports: import colorsys
  import numpy
  import matplotlib
  import pytest
  import numpy.testing
  from seaborn import palettes, utils, rcmod
  from seaborn.external import husl
  from seaborn._compat import get_colormap
  from seaborn.colors import xkcd_rgb, crayons
label_desc: Use image node_id 34 for calling the TestColorPalettes obj's underlying member method code with example usage: obj.test_color_codes() without return types