docstr: Check to see if model is an instance of GridSearchCV.
  Should return an error if it isn't.
code: def __init__(self, estimator, ax=None, **kwargs):
      """
      Check to see if model is an instance of GridSearchCV.
      Should return an error if it isn't.
      """
      # A bit of type checking
      if not is_gridsearch(estimator):
          raise YellowbrickTypeError(
              "This estimator is not a GridSearchCV instance"
          )
  
      # Initialize the super method.
      super(GridSearchVisualizer, self).__init__(
          estimator, ax=ax, **kwargs
      )
  
file_path: yellowbrick/yellowbrick/gridsearch/base.py
imports: import numpy
  from ..utils import is_gridsearch
  from ..base import ModelVisualizer
  from ..exceptions import YellowbrickTypeError, YellowbrickKeyError, YellowbrickValueError
label_desc: Use image node_id 1 to create a new GridSearchVisualizer object from inherited base classes: ModelVisualizer with example: obj = GridSearchVisualizer(estimator, ax)