code: def palette_val(palette: List[tuple]) -> List[tuple]:
      """Convert palette to matplotlib palette.
  
      Args:
          palette (List[tuple]): A list of color tuples.
  
      Returns:
          List[tuple[float]]: A list of RGB matplotlib color tuples.
      """
      new_palette = []
      for color in palette:
          color = [c / 255 for c in color]
          new_palette.append(tuple(color))
      return new_palette
  
file_path: mmdetection/mmdet/visualization/palette.py
imports: from typing import List, Tuple, Union
  import mmcv
  import numpy
  from mmengine.utils import is_str
label_desc: Use image node_id 1 for calling a global function with example usage: palette_val(palette) and returns: new_palette