code: def get_pyplot_color(colors):
      """
      Returns the color(s) of the color_name key in the palette in matplotlib format.
      Parameters
      ----------
      colors :  str or dict
          Colors used as a dict or string object
      Returns
      -------
      dict or tuple
          the colors in pyplot format
      """
      if isinstance(colors, str):
          return convert_str_color_to_plt_format(colors)
      elif isinstance(colors, dict):
          dict_color_palette = {
              k: convert_str_color_to_plt_format(v)
              for k, v in colors.items()
          }
          return dict_color_palette
      elif isinstance(colors, list):
          return [convert_str_color_to_plt_format(v) for v in colors]
      else:
          raise ValueError(
              f"Color type not supported for conversion to pyplot : {type(colors)}"
          )
  
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 6 for calling a global function with example usage: get_pyplot_color(colors) and returns: convert_str_color_to_plt_format, dict_color_palette, unknown