docstr: Create ColorPalette from list of color hex values or color names.
  
  Args:
  colors (list of str): List of color hex values or names.
  palette_type (str, optional): Type of palette:
      'sequential', 'diverging', 'categorical'
  name (str, optional): Name of color palette.
code: def create_palette(self, colors, palette_type, name):
      """Create ColorPalette from list of color hex values or color names.
  
      Args:
      colors (list of str): List of color hex values or names.
      palette_type (str, optional): Type of palette:
          'sequential', 'diverging', 'categorical'
      name (str, optional): Name of color palette.
      """
      new_palette = ColorPalette.from_hex_list(
          colors=colors,
          palette_type=palette_type,
          name=name,
      )
      self._add_palette(new_palette)
  
imports: from collections import OrderedDict
  from bokeh import palettes
  from IPython.core.display import HTML
  import yaml
  from chartify._core.options import options
  from chartify._core import colour
label_desc: Use image node_id 8 for calling the ColorPalettes obj's underlying member method code with example usage: obj.create_palette(colors, palette_type, name) without return types