code: def make_grid(dim, n_points):
      """Build a grid of n_points for a dim"""
      if dim.prior_name == "choices":
          low, high = dim.interval()
          return numpy.arange(low, high + 1)
  
      return numpy.linspace(*dim.interval(), num=n_points)
  
file_path: orion/src/orion/analysis/partial_dependency_utils.py
imports: import copy
  import itertools
  import numpy
  import pandas
  from orion.analysis.base import flatten_numpy, flatten_params, to_numpy, train_regressor
  from orion.core.utils import format_trials
  from orion.core.worker.transformer import build_required_space
label_desc: Use image node_id 3 for calling a global function with example usage: make_grid(dim, n_points) and returns: numpy, numpy