class_docstr: Tests for the VisualizerGrid layout class
class_docstr_tok: ["Tests","for","the","VisualizerGrid","layout","class"]
docstr: Assert that both nrows and ncols cannot be specified
code: def test_cant_define_both_rows_cols(self):
      """
      Assert that both nrows and ncols cannot be specified
      """
      with pytest.raises(YellowbrickValueError):
          VisualizerGrid([], ncols=2, nrows=2)
  
imports: import pytest
  import matplotlib.pyplot
  from yellowbrick.base import *
  from yellowbrick.base import VisualizerGrid
  from yellowbrick.datasets import load_occupancy
  from yellowbrick.exceptions import YellowbrickWarning
  from yellowbrick.exceptions import YellowbrickValueError
  from unittest.mock import patch
  from unittest.mock import MagicMock
  from tests.rand import RandomVisualizer
  from tests.base import IS_WINDOWS_OR_CONDA, VisualTestCase
  from sklearn.svm import LinearSVC
  from sklearn.datasets import make_classification
label_desc: Use image node_id 4 for calling the TestVisualizerGrid obj's underlying member method code with example usage: obj.test_cant_define_both_rows_cols() without return types