class_docstr: Base class for a Wrapper around an algorithm.
docstr: Maximum number of trials to run, or `None` when there is no limit.
docstr_tok: ["Maximum","number","of","trials","to","run",",","or","`","None","`","when","there","is","no","limit","."]
code: def max_trials(self) -> int | None:
      """Maximum number of trials to run, or `None` when there is no limit."""
      return self._algorithm.max_trials
  
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 8 for calling the AlgoWrapper obj's underlying member method code with example usage: obj.max_trials() and returns: self