code: def test_private_score_trial_deprecated_and_call_public(tmp_path):
      oracle = OracleStub(directory=tmp_path, objective="val_loss")
      trial = oracle.create_trial(tuner_id="a")
      oracle.update_trial(
          trial_id=trial.trial_id, metrics={"val_loss": 0.5}
      )
      with pytest.deprecated_call():
          oracle._score_trial(trial)
      assert oracle.score_trial_called
  
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 6 for calling a global function with example usage: test_private_score_trial_deprecated_and_call_public(tmp_path) without return types