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 that configuration can be used to recreate a space.
docstr_tok: ["Test","that","configuration","can","be","used","to","recreate","a","space","."]
code: def test_configuration_rebuild(self, spacebuilder):
      """Test that configuration can be used to recreate a space."""
      prior = {
          "x": "uniform(0, 10, discrete=True)",
          "y": "loguniform(1e-08, 1)",
          "z": "choices(['voici', 'voila', 2])",
      }
      space = spacebuilder.build(prior)
      assert space.configuration == prior
  
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 1 for calling the TestSpaceBuilder obj's underlying member method code with example usage: obj.test_configuration_rebuild(spacebuilder) without return types