class_docstr: Check whether space definition from various input format is successful.
class_docstr_tok: ["Check","whether","space","definition","from","various","input","format","is","successful","."]
docstr: Test space can have hierarchical structure.
docstr_tok: ["Test","space","can","have","hierarchical","structure","."]
code: def test_subdict_dimensions(self, spacebuilder):
      """Test space can have hierarchical structure."""
      prior = {
          "a": {"x": "uniform(0, 10, discrete=True)"},
          "b": {
              "y": "loguniform(1e-08, 1)",
              "z": "choices(['voici', 'voila', 2])",
          },
      }
      space = spacebuilder.build(prior)
      assert len(space) == 3
      assert "a.x" in space
      assert "b.y" in space
      assert "b.z" in space
  
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 2 for calling the TestSpaceBuilder obj's underlying member method code with example usage: obj.test_subdict_dimensions(spacebuilder) without return types