code: def test_objective_has_value():
      obj = objective.create_objective("loss")
      assert obj.has_value({"loss": 3.0})
      assert not obj.has_value({"accuracy": 3.0})
  
imports: import pytest
  import keras_tuner
  from keras_tuner.engine import objective
label_desc: Use image node_id 7 for calling a global function with example usage: test_objective_has_value() without return types