code: def test_create_objective_with_multi_str():
      obj = objective.create_objective(["accuracy", "loss"])
      assert isinstance(obj, objective.MultiObjective)
      assert (
          obj.objectives[0].name == "accuracy"
          and obj.objectives[0].direction == "max"
      )
      assert (
          obj.objectives[1].name == "loss"
          and obj.objectives[1].direction == "min"
      )
  
imports: import pytest
  import keras_tuner
  from keras_tuner.engine import objective
label_desc: Use image node_id 4 for calling a global function with example usage: test_create_objective_with_multi_str() without return types