code: def test_hp_not_provided_for_tune_new_entry_error(tmp_path):
      with pytest.raises(ValueError, match="tune_new_entries=False"):
          OracleStub(
              directory=tmp_path,
              objective="val_loss",
              tune_new_entries=False,
          )
  
imports: import datetime
  import threading
  import time
  import numpy
  import pytest
  import keras_tuner
  from keras_tuner.engine import oracle
  from keras_tuner.engine import trial
  from keras_tuner.tuners import gridsearch
label_desc: Use image node_id 1 for calling a global function with example usage: test_hp_not_provided_for_tune_new_entry_error(tmp_path) without return types