code: def test_get_space(tmp_path):
      def _test_get_space():
          hps = keras_tuner.HyperParameters()
          hps.Int("a", 0, 10, default=3)
          oracle = randomsearch.RandomSearchOracle(
              objective=keras_tuner.Objective("score", "max"),
              max_trials=10,
              hyperparameters=hps,
          )
          oracle._set_project_dir(tmp_path, "untitled")
          tuner_id = os.environ["KERASTUNER_TUNER_ID"]
          if "chief" in tuner_id:
              oracle_chief.start_server(oracle)
          else:
              client = oracle_client.OracleClient(oracle)
              retrieved_hps = client.get_space()
              assert retrieved_hps.values == {"a": 3}
              assert len(retrieved_hps.space) == 1
  
      mock_distribute.mock_distribute(_test_get_space)
  
file_path: keras-tuner/keras_tuner/distribute/oracle_chief_test.py
imports: import os
  import keras_tuner
  from keras_tuner.distribute import oracle_chief
  from keras_tuner.distribute import oracle_client
  from keras_tuner.engine import metrics_tracking
  from keras_tuner.test_utils import mock_distribute
  from keras_tuner.tuners import randomsearch
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_space(tmp_path) without return types