code: def get_colors(num_colors: int) -> List[Tuple[float, float, float]]:
      """Generate num_colors color for matplotlib
  
      Args:
      ----
          num_colors: number of colors to generate
  
      Returns:
      -------
          colors: list of generated colors
      """
      colors = []
      for i in np.arange(0.0, 360.0, 360.0 / num_colors):
          hue = i / 360.0
          lightness = (50 + np.random.rand() * 10) / 100.0
          saturation = (90 + np.random.rand() * 10) / 100.0
          colors.append(colorsys.hls_to_rgb(hue, lightness, saturation))
      return colors
  
imports: import colorsys
  from copy import deepcopy
  from typing import Any, Dict, List, Optional, Tuple, Union
  import cv2
  import matplotlib.patches
  import matplotlib.pyplot
  import mplcursors
  import numpy
  from matplotlib.figure import Figure
  from PIL import Image, ImageDraw
  from unidecode import unidecode
  from .common_types import BoundingBox, Polygon4P
  from .fonts import get_font
label_desc: Use image node_id 4 for calling a global function with example usage: get_colors(num_colors) and returns: colors