code: def test_unknown_objective_type_error():
      with pytest.raises(
          TypeError, match="not understood, expected str"
      ):
          objective.create_objective([3, "accuracy"])
  
imports: import pytest
  import keras_tuner
  from keras_tuner.engine import objective
label_desc: Use image node_id 18 for calling a global function with example usage: test_unknown_objective_type_error() without return types