code: def test_find_pretty_grid():
      # test that the grid is big enough:
      rng = np.random.RandomState(0)
      for i in range(100):
          n_plots = rng.randint(1, 34)
          max_cols = rng.randint(1, 12)
          rows, cols = find_pretty_grid(
              n_plots=n_plots, max_cols=max_cols
          )
          assert rows * cols >= n_plots
          assert cols <= max_cols
  
file_path: dabl/dabl/plot/tests/test_utils.py
imports: import pytest
  import numpy
  import matplotlib.pyplot
  from sklearn.datasets import load_iris
  from dabl.utils import data_df_from_bunch
  from dabl.plot.utils import find_pretty_grid, plot_coefficients, pairplot
label_desc: Use image node_id 1 for calling a global function with example usage: test_find_pretty_grid() without return types