class_docstr: Ways of Dimensions builder.
class_docstr_tok: ["Ways","of","Dimensions","builder","."]
docstr: Build fails because ValueError happens on init.
docstr_tok: ["Build","fails","because","ValueError","happens","on","init","."]
code: def test_build_fails_because_of_ValueError_on_run(self, dimbuilder):
      """Build fails because ValueError happens on init."""
      with pytest.raises(TypeError) as exc:
          dimbuilder.build(
              "yolo2", "alpha(0.9, low=5, high=6, shape=2)"
          )
      assert "Parameter" in str(exc.value)
      assert "Improbable bounds" in str(exc.value.__cause__)
  
imports: import pytest
  from scipy.stats import distributions
  from orion.algo.space import Categorical, Fidelity, Integer, Real
  from orion.core.io.space_builder import DimensionBuilder, SpaceBuilder
label_desc: Use image node_id 10 for calling the TestDimensionBuilder obj's underlying member method code with example usage: obj.test_build_fails_because_of_ValueError_on_run(dimbuilder) without return types