code: def test_multi_objective_has_value():
      obj = objective.create_objective(["loss", "accuracy"])
      assert obj.has_value({"loss": 1.0, "accuracy": 1.0, "mse": 2.0})
      assert not obj.has_value({"accuracy": 1.0, "mse": 2.0})
  
imports: import pytest
  import keras_tuner
  from keras_tuner.engine import objective
label_desc: Use image node_id 15 for calling a global function with example usage: test_multi_objective_has_value() without return types