code: def test_multi_objective_to_str():
      obj = objective.create_objective(["loss", "accuracy"])
      assert (
          str(obj)
          == 'MultiObjective(name="multi_objective", direction="min"): '
          '[Objective(name="loss", direction="min"), '
          'Objective(name="accuracy", direction="max")]'
      )
  
imports: import pytest
  import keras_tuner
  from keras_tuner.engine import objective
label_desc: Use image node_id 17 for calling a global function with example usage: test_multi_objective_to_str() without return types