class_docstr: Base class for a Wrapper around an algorithm.
docstr: Sets the maximum number of trials to run on the algo wrapper.
  
  NOTE: This may or may not be propagated to the wrapped algorithm, depending on the type of
  wrapper.
docstr_tok: ["Sets","the","maximum","number","of","trials","to","run","on","the","algo","wrapper",".","NOTE",":","This","may","or","may","not","be","propagated","to","the","wrapped","algorithm",",","depending","on","the","type","of","wrapper","."]
code: def max_trials(self, value: int | None) -> None:
      """Sets the maximum number of trials to run on the algo wrapper.
  
      NOTE: This may or may not be propagated to the wrapped algorithm, depending on the type of
      wrapper.
      """
      self._algorithm.max_trials = value
  
imports: from __future__ import annotations
  import copy
  from logging import getLogger
  from typing import TYPE_CHECKING, Generic, Sequence, TypeVar
  from orion.algo.base import BaseAlgorithm
  from orion.algo.space import Space
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 9 for calling the AlgoWrapper obj's underlying member method code with example usage: obj.max_trials(value) without return types