class_docstr: Tests the color_palette function.
docstr: Test the context manager for the color_palette function
docstr_tok: ["Test","the","context","manager","for","the","color_palette","function"]
code: def test_palette_context(self):
      """
      Test the context manager for the color_palette function
      """
  
      default_pal = color_palette()
      context_pal = color_palette("muted")
  
      with color_palette(context_pal):
          assert get_color_cycle() == context_pal
  
      assert get_color_cycle() == default_pal
  
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 2 for calling the TestColorPaletteFunction obj's underlying member method code with example usage: obj.test_palette_context() without return types