code: def select_palette(colors_dic, palette_name):
      """
      colors_loading allows shapash to load a json file which contains different
      palettes of colors that can be used in the plot
      Parameters
      ----------
      colors_dic : dict
          dictionnary with every palettes
      palette_name : String
          name of the palette
      Returns
      -------
      dict:
          contains colors of one palette
      """
      if palette_name not in colors_dic.keys():
          raise ValueError(f"Palette {palette_name} not found.")
      return colors_dic[palette_name]
  
file_path: shapash/shapash/style/style_utils.py
imports: import json
  import os
  from shapash.utils.utils import convert_string_to_int_keys
label_desc: Use image node_id 2 for calling a global function with example usage: select_palette(colors_dic, palette_name) and returns: colors_dic