code: def test_adaptive_grid(batch_size, min_bin_points):
      X = np.random.rand(
          batch_size,
      )
      q, num_points = adaptive_grid(X, min_bin_points=min_bin_points)
  
      # check that each bin has >= min_bin_points
      assert minimum_satisfied(X, min_bin_points, num_points)
  
imports: import re
  from copy import deepcopy
  import matplotlib.pyplot
  import numpy
  import pytest
  from numpy.testing import assert_allclose
  from pytest_lazyfixture import lazy_fixture
  from alibi.api.defaults import DEFAULT_DATA_ALE, DEFAULT_META_ALE
  from alibi.api.interfaces import Explanation
  from alibi.explainers.ale import _plot_one_ale_num, adaptive_grid, ale_num, get_quantiles, minimum_satisfied, plot_ale
label_desc: Use image node_id 4 for calling a global function with example usage: test_adaptive_grid(batch_size, min_bin_points) without return types