code: def _get_colors_from_color_type(
      color_type: str, num_colors: int
  ) -> list[Color]:
      """Get colors from user input color type."""
      if color_type == "default":
          return _get_default_colors(num_colors)
      elif color_type == "random":
          return _get_random_colors(num_colors)
      else:
          raise ValueError(
              "color_type must be either 'default' or 'random'"
          )
  
imports: from __future__ import annotations
  from collections.abc import Collection, Iterator, Sequence
  import itertools
  from typing import TYPE_CHECKING, cast, overload
  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 13 for calling a global function with example usage: _get_colors_from_color_type(color_type, num_colors) and returns: _get_default_colors, _get_random_colors