class_docstr: Test resolve_colors helper function
class_docstr_tok: ["Test","resolve_colors","helper","function"]
docstr: Assert that supplying a maptlotlib palette as colormap works
docstr_tok: ["Assert","that","supplying","a","maptlotlib","palette","as","colormap","works"]
code: def test_colormap_palette_mpl(self):
      """
      Assert that supplying a maptlotlib palette as colormap works
      """
      colormap = cm.get_cmap("nipy_spectral")
      colors = resolve_colors(colormap=colormap)
      assert colors == [
          (0.0, 0.0, 0.0, 1.0),
          (0.0, 0.0, 0.8667, 1.0),
          (0.0, 0.6667, 0.5333, 1.0),
          (0.0, 1.0, 0.0, 1.0),
          (1.0, 0.6, 0.0, 1.0),
          (0.8, 0.8, 0.8, 1.0),
      ]
  
imports: import sys
  import pytest
  from matplotlib import cm
  from cycler import Cycler
  from sklearn.cluster import KMeans
  from sklearn.datasets import make_blobs
  from yellowbrick.style.colors import *
  from yellowbrick.style.palettes import ColorPalette, PALETTES
  from yellowbrick.cluster.silhouette import SilhouetteVisualizer
  from tests.base import VisualTestCase
label_desc: Use image node_id 9 for calling the TestResolveColors obj's underlying member method code with example usage: obj.test_colormap_palette_mpl() without return types