class_docstr: Tests the color_palette function.
docstr: Test that the context manager also resets the number of colors
docstr_tok: ["Test","that","the","context","manager","also","resets","the","number","of","colors"]
code: def test_big_palette_context(self):
      """
      Test that the context manager also resets the number of colors
      """
  
      original_pal = color_palette("accent", n_colors=8)
      context_pal = color_palette("bold", 10)
  
      set_palette(original_pal)
      with color_palette(context_pal, 10):
          assert get_color_cycle() == context_pal
  
      assert get_color_cycle() == original_pal
  
      # Reset default
      set_aesthetic()
  
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 3 for calling the TestColorPaletteFunction obj's underlying member method code with example usage: obj.test_big_palette_context() without return types