code: def test_lpi_n_points(monkeypatch):
      """Verify given number of points is used"""
      N_POINTS = numpy.random.randint(2, 50)
  
      def mock_make_grid(*args, **kwargs):
          grid = make_grid(*args, **kwargs)
          assert grid.shape == (len(space), N_POINTS, len(space) + 1)
          return grid
  
      monkeypatch.setattr(
          "orion.analysis.lpi_utils.make_grid", mock_make_grid
      )
      lpi(data, space, random_state=1, n_points=N_POINTS)
  
file_path: orion/tests/unittests/analysis/test_lpi.py
imports: import copy
  import numpy
  import pandas
  from orion.analysis.base import to_numpy, train_regressor
  from orion.analysis.lpi_utils import compute_variances, lpi, make_grid
  from orion.core.io.space_builder import SpaceBuilder
label_desc: Use image node_id 9 for calling a global function with example usage: test_lpi_n_points(monkeypatch) and returns: grid