code: def get_standard_colors(
      num_colors: int,
      colormap: Colormap | None = None,
      color_type: str = "default",
      *,
      color: dict[str, Color] | Color | Sequence[Color] | None = None,
  ) -> dict[str, Color] | list[Color]:
      """
      Get standard colors based on `colormap`, `color_type` or `color` inputs.
  
      Parameters
      ----------
      num_colors : int
          Minimum number of colors to be returned.
          Ignored if `color` is a dictionary.
      colormap : :py:class:`matplotlib.colors.Colormap`, optional
          Matplotlib colormap.
          When provided, the resulting colors will be derived from the colormap.
      color_type : {"default", "random"}, optional
          Type of colors to derive. Used if provided `color` and `colormap` are None.
          Ignored if either `color` or `colormap` are not None.
      color : dict or str or sequence, optional
          Color(s) to be used for deriving sequence of colors.
          Can be either be a dictionary, or a single color (single color string,
          or sequence of floats representing a single color),
          or a sequence of colors.
  
      Returns
      -------
      dict or list
          Standard colors. Can either be a mapping if `color` was a dictionary,
          or a list of colors with a length of `num_colors` or more.
  
      Warns
      -----
      UserWarning
          If both `colormap` and `color` are provided.
          Parameter `color` will override.
      """
      if isinstance(color, dict):
          return color
  
      colors = _derive_colors(
          color=color,
          colormap=colormap,
          color_type=color_type,
          num_colors=num_colors,
      )
  
      return list(_cycle_colors(colors, num_colors=num_colors))
  
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 4 for calling a global function with example usage: get_standard_colors(num_colors, colormap, color_type) and returns: list, color