class_docstr: Set the color palette in a with statement, otherwise be a list.
docstr: Close the context.
docstr_tok: ["Close","the","context","."]
code: def __exit__(self, *args):
      """Close the context."""
      from .rcmod import set_palette
  
      set_palette(self._orig_palette)
  
imports: import colorsys
  from itertools import cycle
  import numpy
  import matplotlib
  from .external import husl
  from .utils import desaturate, get_color_cycle
  from .colors import xkcd_rgb, crayons
  from ._compat import get_colormap
label_desc: Use image node_id 2 for calling the _ColorPalette obj's underlying member method code with example usage: obj.__exit__() without return types