code: def test_get_by_name_key_error(space, name):
      with pytest.raises(
          KeyError, match=f"{name} not found in dimensions"
      ):
          space.get_by_name(name)
  
imports: from hyperparameter_hunter import Real, Categorical, Integer
  from hyperparameter_hunter.feature_engineering import EngineerStep
  from hyperparameter_hunter.space.dimensions import RejectedOptional
  from hyperparameter_hunter.space.space_core import Space
  import pytest
  from sys import maxsize
label_desc: Use image node_id 15 for calling a global function with example usage: test_get_by_name_key_error(space, name) without return types