class_docstr: Check functionality of optimization loop.
docstr: Basic async synthetic function managed loop case.
docstr_tok: ["Basic","async","synthetic","function","managed","loop","case","."]
code: def test_branin_with_active_parameter_constraints(self) -> None:
      """Basic async synthetic function managed loop case."""
      loop = OptimizationLoop.with_evaluation_function(
          parameters=[
              {
                  "name": "x1",
                  "type": "range",
                  "bounds": [-5.0, 10.0],
                  "value_type": "float",
                  "log_scale": False,
              },
              {"name": "x2", "type": "range", "bounds": [0.0, 10.0]},
          ],
          experiment_name="test",
          objective_name="branin",
          minimize=True,
          evaluation_function=_branin_evaluation_function,
          parameter_constraints=["x1 + x2 <= 1"],
          outcome_constraints=["constrained_metric <= 10"],
          total_trials=6,
      )
      bp, _ = loop.full_run().get_best_point()
      self.assertIn("x1", bp)
      self.assertIn("x2", bp)
      # pyre-fixme[58]: `+` is not supported for operand types `Union[None, bool,
      #  float, int, str]` and `Union[None, bool, float, int, str]`.
      self.assertTrue(bp["x1"] + bp["x2"] <= 1)
      with self.assertRaisesRegex(
          ValueError, "Optimization is complete"
      ):
          loop.run_trial()
  
imports: from typing import Dict, Tuple, Union
  from unittest.mock import Mock, patch
  import numpy
  from ax.exceptions.core import UserInputError
  from ax.metrics.branin import branin
  from ax.modelbridge.generation_strategy import GenerationStep, GenerationStrategy
  from ax.modelbridge.registry import Models
  from ax.service.managed_loop import OptimizationLoop, optimize
  from ax.utils.common.testutils import TestCase
  from ax.utils.testing.mock import fast_botorch_optimize
  from numpy import ndarray
label_desc: Use image node_id 3 for calling the TestManagedLoop obj's underlying member method code with example usage: obj.test_branin_with_active_parameter_constraints() without return types