code: def test_is_done_max_trials(self):
      space = self.create_space()
  
      MAX_TRIALS = 10
      algo = self.create_algo(space=space)
      algo.algorithm.max_trials = MAX_TRIALS
  
      rng = np.random.RandomState(123456)
  
      objective = 0
      while not algo.is_done:
          trials = algo.suggest(1)
          assert trials is not None
          if trials:
              self.observe_trials(trials, algo, rng)
  
      # ASHA should ignore max trials.
      assert algo.n_observed > MAX_TRIALS
      assert algo.is_done
  
imports: from __future__ import annotations
  import hashlib
  import logging
  from typing import ClassVar
  import numpy
  import pytest
  from test_hyperband import compare_registered_trial, create_rung_from_points, create_trial_for_hb, force_observe
  from orion.algo.asha import ASHA, ASHABracket, compute_budgets
  from orion.algo.hyperband import RungDict
  from orion.algo.space import Fidelity, Integer, Real, Space
  from orion.core.worker.primary_algo import SpaceTransform
  from orion.testing.algo import BaseAlgoTests, TestPhase
  from orion.testing.trial import create_trial
label_desc: Use image node_id 3 for calling the TestGenericASHA obj's underlying member method code with example usage: obj.test_is_done_max_trials() without return types