class_docstr: Base class for color palettes.
code: def _get_palette_class(
      cls,
      chart,
      palette_type="categorical",
      palette=None,
      accent_values=None,
  ):
      if palette_type == "categorical":
          if palette is None:
              palette_name = options.get_option(
                  "style.color_palette_categorical"
              )
              palette = colors.color_palettes[palette_name]
          return CategoricalPalette(chart, palette)
      elif palette_type == "sequential":
          if palette is None:
              palette_name = options.get_option(
                  "style.color_palette_sequential"
              )
              palette = colors.color_palettes[palette_name]
          return OrdinalPalette(chart, palette)
      elif palette_type == "diverging":
          if palette is None:
              palette_name = options.get_option(
                  "style.color_palette_diverging"
              )
              palette = colors.color_palettes[palette_name]
          return OrdinalPalette(chart, palette)
      elif palette_type == "accent":
          if palette is None:
              palette_name = options.get_option(
                  "style.color_palette_accent"
              )
              palette = colors.color_palettes[palette_name]
          return AccentPalette(chart, palette, accent_values)
      else:
          raise ValueError(
              """Type must be one of: ('categorical', 'sequential',
                                           'diverging', 'accent')."""
          )
  
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 3 for calling the BasePalette obj's underlying member method code with example usage: obj._get_palette_class(cls, chart, palette_type, palette, accent_values) and returns: CategoricalPalette, OrdinalPalette, OrdinalPalette, AccentPalette