code: def build_space(dims=None):
      """Create an example `orion.algo.space.Space`."""
      if dims is None:
          dims = [dim1(), dim2(), dim3(), dim4()]
      space = Space()
      for dim in dims:
          space.register(dim)
      return space
  
imports: from collections import OrderedDict
  from orion.algo.space import Categorical, Fidelity, Integer, Real, Space
label_desc: Use image node_id 5 for calling a global function with example usage: build_space(dims) and returns: space