class_docstr: Run the optimization process given the current executor
class_docstr_tok: ["Run","the","optimization","process","given","the","current","executor"]
docstr: Suggest a bunch of trials to be dispatched to the workers
docstr_tok: ["Suggest","a","bunch","of","trials","to","be","dispatched","to","the","workers"]
code: def _suggest_trials(self, count):
      """Suggest a bunch of trials to be dispatched to the workers"""
      trials = []
      for _ in range(count):
          try:
              batch_size = (
                  count if self.batch_size == 0 else self.batch_size
              )
              trial = self.client.suggest(pool_size=batch_size)
              trials.append(trial)
  
          # non critical errors
          except WaitingForTrials:
              log.debug("Runner cannot sample because WaitingForTrials")
              break
  
          except ReservationRaceCondition:
              log.debug(
                  "Runner cannot sample because ReservationRaceCondition"
              )
              break
  
          except LockAcquisitionTimeout:
              log.debug(
                  "Runner cannot sample because LockAcquisitionTimeout"
              )
              break
  
          except CompletedExperiment:
              log.debug(
                  "Runner cannot sample because CompletedExperiment"
              )
              break
  
      return trials
  
imports: from __future__ import annotations
  import logging
  import os
  import shutil
  import signal
  import time
  import typing
  import warnings
  from contextlib import contextmanager
  from dataclasses import dataclass
  from typing import Callable
  import orion.core
  from orion.core.utils import backward
  from orion.core.utils.exceptions import BrokenExperiment, CompletedExperiment, InvalidResult, LazyWorkers, ReservationRaceCondition, WaitingForTrials
  from orion.core.utils.flatten import flatten, unflatten
  from orion.core.worker.consumer import ExecutionError
  from orion.core.worker.trial import AlreadyReleased
  from orion.executor.base import AsyncException, AsyncResult
  from orion.storage.base import LockAcquisitionTimeout
label_desc: Use image node_id 14 for calling the Runner obj's underlying member method code with example usage: obj._suggest_trials(count) and returns: trials