code: def test_filter_by_space(
      space_fixture, scored_hyperparameters, expected
  ):
      assert (
          filter_by_space(scored_hyperparameters, space_fixture)
          == expected
      )
  
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 5 for calling a global function with example usage: test_filter_by_space(space_fixture, scored_hyperparameters, expected) without return types