docstr: Linearly expand the color palette up to the target color count.
code: def expand_palette(self, target_color_count):
      """Linearly expand the color palette up to the target color count."""
      palette_color_count = len(self.colors)
      if target_color_count <= palette_color_count:
          return self
      target_color_count = target_color_count - 1
      extrapolation_count = [
          target_color_count // (palette_color_count - 1)
      ] * (palette_color_count - 1)
      for i in range(target_color_count % (palette_color_count - 1)):
          extrapolation_count[i] += 1
  
      extrapolated_palette = []
      for i, count in enumerate(extrapolation_count):
          extrapolated_palette.extend(
              self.colors[i].linear_gradient(
                  self.colors[i + 1], count + 1
              )[:-1]
          )
      extrapolated_palette.extend([self.colors[-1]])
  
      return ColorPalette.from_hex_list(
          colors=extrapolated_palette,
          palette_type=self.palette_type,
          name=self.name,
      )
  
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 ColorPalette obj's underlying member method code with example usage: obj.expand_palette(target_color_count) and returns: ColorPalette, self