class_docstr: Test resolve_colors helper function
class_docstr_tok: ["Test","resolve_colors","helper","function"]
docstr: Assert that supplying a maptlotlib.cm as colormap works
docstr_tok: ["Assert","that","supplying","a","maptlotlib.cm","as","colormap","works"]
code: def test_colormap_cmap(self):
      """
      Assert that supplying a maptlotlib.cm as colormap works
      """
      cmap = cm.get_cmap("nipy_spectral")
      colors = resolve_colors(4, colormap=cmap)
      assert colors == [
          (0.0, 0.0, 0.0, 1.0),
          (0.0, 0.6444666666666666, 0.7333666666666667, 1.0),
          (0.7999666666666666, 0.9777666666666667, 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 8 for calling the TestResolveColors obj's underlying member method code with example usage: obj.test_colormap_cmap() without return types