class_docstr: Test suite for algorithm AxOptimizer
class_docstr_tok: ["Test","suite","for","algorithm","AxOptimizer"]
docstr: Test that the seeding gives reproducible results.
docstr_tok: ["Test","that","the","seeding","gives","reproducible","results","."]
code: def test_seed_rng(self, seed: int):
      """Test that the seeding gives reproducible results."""
      algo = self.create_algo(seed=seed)
  
      trial_a = algo.suggest(1)[0]
      trial_b = algo.suggest(1)[0]
      assert trial_a != trial_b
  
      new_algo = self.create_algo(seed=seed)
      assert new_algo.n_observed == algo.n_observed
      trial_c = new_algo.suggest(1)[0]
      if self._current_phase.name == "Sobol":
          assert trial_c == trial_a
      numpy.testing.assert_allclose(
          numpy.array(list(trial_a.params.values())).astype(float),
          numpy.array(list(trial_c.params.values())).astype(float),
          atol=TOL,
          rtol=TOL,
      )
  
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 3 for calling the TestAxOptimizer obj's underlying member method code with example usage: obj.test_seed_rng(seed) without return types