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