class_docstr: A wrapper for functionality surrounding a list of colors, including a
  context manager that allows the palette to be set with a with statement.
class_docstr_tok: ["A","wrapper","for","functionality","surrounding","a","list","of","colors",",","including","a","context","manager","that","allows","the","palette","to","be","set","with","a","with","statement","."]
docstr: Close the context and restore the original palette
docstr_tok: ["Close","the","context","and","restore","the","original","palette"]
code: def __exit__(self, *args):
      """
      Close the context and restore the original palette
      """
      from .rcmod import set_palette
  
      set_palette(self._orig_palette)
  
file_path: yellowbrick/yellowbrick/style/palettes.py
imports: import numpy
  import matplotlib
  import matplotlib.pyplot
  import matplotlib.colors
  from itertools import cycle
  from .colors import get_color_cycle
  from yellowbrick.exceptions import YellowbrickValueError
label_desc: Use image node_id 3 for calling the ColorPalette obj's underlying member method code with example usage: obj.__exit__() without return types