class_docstr: Grid Search algorithm
  
  Parameters
  ----------
  n_values: int or dict
      Number of trials for each dimensions, or dictionary specifying number of trials for each
      dimension independently (name, n_values). For categorical dimensions, n_values will not be
      used, and all categories will be used to build the grid.
docstr: Return the entire grid of suggestions
  
  Returns
  -------
  list of trials or None
      A list of lists representing trials suggested by the algorithm. The algorithm may opt
      out if it cannot make a good suggestion at the moment (it may be waiting for other
      trials to complete), in which case it will return None.
docstr_tok: ["Return","the","entire","grid","of","suggestions","Returns","--","--","--","-","list","of","trials","or","None","A","list","of","lists","representing","trials","suggested","by","the","algorithm",".","The","algorithm","may","opt","out","if","it","can","not","make","a","good","suggestion","at","the","moment","(","it","may","be","waiting","for","other","trials","to","complete",")",",","in","which","case","it","will","return","None","."]
code: def suggest(self, num):
      """Return the entire grid of suggestions
  
      Returns
      -------
      list of trials or None
          A list of lists representing trials suggested by the algorithm. The algorithm may opt
          out if it cannot make a good suggestion at the moment (it may be waiting for other
          trials to complete), in which case it will return None.
  
      """
      trials = []
      while len(trials) < num and self.index < len(self.grid):
          trial = format_trials.tuple_to_trial(
              self.grid[self.index], self.space
          )
          if not self.has_suggested(trial):
              self.register(trial)
              trials.append(trial)
          self.index += 1
  
      return trials
  
imports: from __future__ import annotations
  import itertools
  import logging
  import numpy
  from orion.algo.base import BaseAlgorithm
  from orion.algo.space import Categorical, Dimension, Fidelity, Integer, Real, Space
  from orion.core.utils import format_trials
label_desc: Use image node_id 5 for calling the GridSearch obj's underlying member method code with example usage: obj.suggest(num) and returns: trials