class_docstr: Tests the color_palette function.
docstr: Ensure the color sequence returns listed colors.
docstr_tok: ["Ensure","the","color","sequence","returns","listed","colors","."]
code: def test_color_sequence(self):
      """
      Ensure the color sequence returns listed colors.
      """
      for name, ncols in SEQUENCES.items():
          for n in ncols.keys():
              cmap = color_sequence(name, n)
              assert name == cmap.name
              assert n == cmap.N
  
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 15 for calling the TestColorPaletteFunction obj's underlying member method code with example usage: obj.test_color_sequence() without return types