class_docstr: Test suite for algorithm AxOptimizer
class_docstr_tok: ["Test","suite","for","algorithm","AxOptimizer"]
code: def test_is_done_cardinality(self, *args, **kwargs):
      # Set higher max_trials to explore all cardinality space
      _max_trials = self.max_trials
      self.max_trials = 200
      super().test_is_done_cardinality(*args, **kwargs)
      self.max_trials = _max_trials
  
imports: import statistics
  from typing import ClassVar, List
  import pytest
  from orion.algo.axoptimizer import import_optional
  from orion.benchmark.task.base import BenchmarkTask
  from orion.core.utils import backward
  from orion.testing.algo import BaseAlgoTests, TestPhase, first_phase_only
  import numpy
  from botorch.test_functions.multi_objective import BraninCurrin
  from torch import Tensor
label_desc: Use image node_id 2 for calling the TestAxOptimizer obj's underlying member method code with example usage: obj.test_is_done_cardinality() without return types