code: def test_create_objective_with_str():
      obj = objective.create_objective("accuracy")
      assert obj.name == "accuracy" and obj.direction == "max"
  
imports: import pytest
  import keras_tuner
  from keras_tuner.engine import objective
label_desc: Use image node_id 1 for calling a global function with example usage: test_create_objective_with_str() without return types