code: def _get_default_colors(num_colors: int) -> list[Color]:
      """Get `num_colors` of default colors from matplotlib rc params."""
      import matplotlib.pyplot as plt
  
      colors = [c["color"] for c in plt.rcParams["axes.prop_cycle"]]
      return colors[0:num_colors]
  
imports: from __future__ import annotations
  import itertools
  from typing import TYPE_CHECKING, Collection, Iterator, cast
  import warnings
  import matplotlib
  import matplotlib.colors
  import numpy
  from pandas._typing import MatplotlibColor
  from pandas.util._exceptions import find_stack_level
  from pandas.core.dtypes.common import is_list_like
  import pandas.core.common
label_desc: Use image node_id 11 for calling a global function with example usage: _get_default_colors(num_colors) and returns: colors