class_docstr: Base class describing what a task can do.
  A task will define the objective function and search space of it.
  
  Parameters
  ----------
  max_trials : int
     Max number of trials the experiment will run against this task.
  kwargs : dict
     Configurable parameters of the task, a particular task
     implementation can have its own parameters.
docstr: Return the max number of trials to run for the task.
docstr_tok: ["Return","the","max","number","of","trials","to","run","for","the","task","."]
code: def max_trials(self) -> int:
      """Return the max number of trials to run for the task."""
      return self._max_trials
  
file_path: orion/src/orion/benchmark/task/base.py
imports: from abc import ABC, abstractmethod
  from typing import Any, Dict, List
  from orion.core.utils import GenericFactory
label_desc: Use image node_id 4 for calling the BenchmarkTask obj's underlying member method code with example usage: obj.max_trials() and returns: self