code: def test_get_by_name_use_location(space, name, expected):
      for dim in space.dimensions:
          if isinstance(dim.name, str):
              setattr(dim, "location", ("some", "loc", dim.name))
          else:
              setattr(dim, "location", ("some", "loc") + dim.name)
  
      actual = space.get_by_name(name, use_location=True)
      assert actual == expected
  
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 17 for calling a global function with example usage: test_get_by_name_use_location(space, name, expected) without return types