code: def space_fixture():
      dimensions = [
          Real(0.1, 0.9),
          Categorical(["foo", "bar", "baz"]),
          Integer(12, 18),
      ]
      locations = [
          ("model_init_params", "a"),
          ("model_init_params", "b", "c"),
          ("model_extra_params", "e"),
      ]
  
      for i in range(len(dimensions)):
          setattr(dimensions[i], "location", locations[i])
  
      return Space(dimensions)
  
file_path: hyperparameter_hunter/tests/test_utils/test_optimization_utils.py
imports: from hyperparameter_hunter import Real, Categorical, Integer
  from hyperparameter_hunter.space.space_core import Space
  from hyperparameter_hunter.utils.optimization_utils import does_fit_in_space, filter_by_space, get_choice_dimensions, get_ids_by
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: space_fixture() and returns: Space