code: def get_color_cycle():
      """
      Returns the current color cycle from matplotlib.
      """
      if mpl_ge_150:
          cyl = mpl.rcParams["axes.prop_cycle"]
          # matplotlib 1.5 verifies that axes.prop_cycle *is* a cycler
          # but no garuantee that there's a `color` key.
          # so users could have a custom rcParams w/ no color...
          try:
              return [x["color"] for x in cyl]
          except KeyError:
              pass  # just return axes.color style below
      return mpl.rcParams["axes.color_cycle"]
  
file_path: yellowbrick/yellowbrick/style/colors.py
imports: import random
  import warnings
  import numpy
  import matplotlib
  import matplotlib.cm
  from copy import copy
  from yellowbrick.exceptions import YellowbrickValueError
  from distutils.version import LooseVersion
label_desc: Use image node_id 1 for calling a global function with example usage: get_color_cycle() and returns: mpl, unknown