class_docstr: Contains attributes and methods for modifying the aesthetic
  style of the chart.
docstr: Args:
      palette_type:
          - 'categorical': Use when the color dimension
              has no meaningful order.
          - 'sequential': Use when the color dimension
              has a sequential order.
          - 'diverging'
          - 'accent': Use to assign color to specific
              values in the color dimension.
      palette (color palette name, ColorPalette object, or list of colors)
          See chartify.color_palettes.show() for palette & color names.
          Default: 'Spotify Palette'
      accent_values (list or dict): List of values that should be
      accented or dictionary of 'value': 'color' pairs.
          Only applies to 'accent' palette type.
docstr_tok: ["Args",":","palette_type",":","-","'categorical","'",":","Use","when","the","color","dimension","has","no","meaningful","order",".","-","'sequential","'",":","Use","when","the","color","dimension","has","a","sequential","order",".","-","'diverging'","-","'accent","'",":","Use","to","assign","color","to","specific","values","in","the","color","dimension",".","palette","(","color","palette","name",",","ColorPalette","object",",","or","list","of","colors",")","See","chartify.color_palettes.show","(",")","for","palette","&","color","names",".","Default",":","'Spotify","Palette'","accent_values","(","list","or","dict",")",":","List","of","values","that","should","be","accented","or","dictionary","of","'value","'",":","'color","'","pairs",".","Only","applies","to","'accent","'","palette","type","."]
code: def set_color_palette(
      self, palette_type, palette=None, accent_values=None
  ):
      """
      Args:
          palette_type:
              - 'categorical': Use when the color dimension
                  has no meaningful order.
              - 'sequential': Use when the color dimension
                  has a sequential order.
              - 'diverging'
              - 'accent': Use to assign color to specific
                  values in the color dimension.
          palette (color palette name, ColorPalette object, or list of colors)
              See chartify.color_palettes.show() for palette & color names.
              Default: 'Spotify Palette'
          accent_values (list or dict): List of values that should be
          accented or dictionary of 'value': 'color' pairs.
              Only applies to 'accent' palette type.
  
      """
      self.color_palette = BasePalette._get_palette_class(
          self._chart,
          palette_type=palette_type,
          palette=palette,
          accent_values=accent_values,
      )
  
      return self._chart
  
imports: from itertools import cycle
  import yaml
  import bokeh
  from bokeh.core.properties import value
  from chartify._core import colors
  from chartify._core.options import options
  from packaging import version
label_desc: Use image node_id 4 for calling the Style obj's underlying member method code with example usage: obj.set_color_palette(palette_type, palette, accent_values) and returns: self