class_docstr: Test resolve_colors helper function
class_docstr_tok: ["Test","resolve_colors","helper","function"]
docstr: Exception raised when invalid colormap is supplied
docstr_tok: ["Exception","raised","when","invalid","colormap","is","supplied"]
code: def test_colormap_invalid(self):
      """
      Exception raised when invalid colormap is supplied
      """
      with pytest.raises(YellowbrickValueError):
          resolve_colors(12, colormap="foo")
  
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 5 for calling the TestResolveColors obj's underlying member method code with example usage: obj.test_colormap_invalid() without return types